-
Notifications
You must be signed in to change notification settings - Fork 1
feat :: move 값 repuest에서 받아오게 변경 #626
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
The head ref may contain hidden characters: "625-\uAD50\uC2E4\uC774\uB3D9-move-sse-\uCD94\uAC00"
Conversation
Walkthrough교실 이동 관련 DTO의 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20분 Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting 📒 Files selected for processing (1)
💤 Files with no reviewable changes (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)
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: 2
🤖 Fix all issues with AI Agents
In
@src/main/kotlin/dsm/pick2024/domain/classroom/presentation/dto/request/UserMoveClassroomRequest.kt:
- Line 4: Add validation to the UserMoveClassroomRequest.move property by
annotating it with @field:NotBlank and @field:Size(max = 20) to prevent empty
strings and enforce the DB varchar(20) limit, and update the
ClassroomController.moveClassroom handler to validate incoming payloads by
adding @Valid to the @RequestBody parameter (i.e., change the signature to
accept @Valid @RequestBody userMoveClassroomRequest).
In
@src/main/kotlin/dsm/pick2024/domain/classroom/service/MoveClassroomApplicationService.kt:
- Line 36: Add server-side validation for the incoming move value: annotate the
DTO field (UserMoveClassroomRequest.move) with appropriate validation
annotations (e.g., @NotNull or a custom @Pattern/@Enum validator), mark the
controller parameter with @Valid on the @RequestBody so Spring triggers
validation, and also add explicit service-side checks in
MoveClassroomApplicationService (validate request.move before using it) that
throw MoveRequiredOnClubDayException when move is missing/invalid; ensure the
controller returns validation errors consistently (e.g., via BindingResult or a
global @ExceptionHandler) so invalid client payloads are rejected.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
📒 Files selected for processing (2)
src/main/kotlin/dsm/pick2024/domain/classroom/presentation/dto/request/UserMoveClassroomRequest.ktsrc/main/kotlin/dsm/pick2024/domain/classroom/service/MoveClassroomApplicationService.kt
Summary by CodeRabbit
릴리스 노트
✏️ Tip: You can customize this high-level summary in your review settings.