-
Notifications
You must be signed in to change notification settings - Fork 1
[REFACTOR] Calendar Response ID 키 변경 #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughDTO 레코드 컴포넌트명 변경과 예외 메시지 포맷 수정이 이루어졌습니다: CalendarResponse의 첫 필드명이 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
eeos/src/main/java/com/blackcompany/eeos/calendar/application/dto/CalendarResponse.java (1)
8-10: (옵션) 직렬화 키 고정 및 문서화 주석 추가 제안Jackson/스웨거 사용 시 명시적으로 키를 고정하면 팀 내/외부 계약 가독성이 좋아집니다. 적용은 선택 사항입니다.
-public record CalendarResponse( - Long calendarId, String title, String url, String type, Long startAt, Long endAt, String writer) +public record CalendarResponse( + @io.swagger.v3.oas.annotations.media.Schema(name = "calendarId", description = "캘린더 식별자") + @com.fasterxml.jackson.annotation.JsonProperty("calendarId") + Long calendarId, + String title, String url, String type, Long startAt, Long endAt, String writer)추가로, 아래 import를 파일 상단에 포함해주세요:
import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema;
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
eeos/src/main/java/com/blackcompany/eeos/calendar/application/dto/CalendarResponse.java(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: test
🔇 Additional comments (2)
eeos/src/main/java/com/blackcompany/eeos/calendar/application/dto/CalendarResponse.java (2)
17-19: toResponse 매핑 정상
model.getId()가 변경된 첫 컴포넌트(calendarId)로 그대로 매핑되어 런타임 의미는 유지됩니다.
9-9: calendarId로 리네임 — 직렬화 키/문서/테스트 영향 범위 확인 필요
- 변경 요약: CalendarResponse 레코드 필드명이 id → calendarId로 바뀌어 Jackson 기본 직렬화 키가 "id" → "calendarId"로 변경됩니다.
- 코드 검증: toResponse(...)는 여전히 new CalendarResponse(model.getId(), ...)로 생성하고 있으며, 컨트롤러는 @PathVariable("calendarId")를 사용합니다. (참고: eeos/src/main/java/.../CalendarResponse.java, CalendarController.java, CalendarQueryService.java)
- 남은 리스크: 저장된 스냅샷, OpenAPI/Swagger 산출물, 프런트(직렬화 기대값) 및 문서에서 여전히 "id" 키를 기대하는지 전역 검색이 실패해 확증 불가 — 위 항목들을 수동으로 검증해 주세요.
📌 관련 이슈
✒️ 작업 내용
id키를calendarId로 변경합니다.스크린샷 🏞️ (선택)
💬 REVIEWER에게 요구사항 💬
Summary by CodeRabbit