[REFACTOR] 일정 및 준비/실행 항목 알람 리펙토링 - #237
Merged
Merged
Conversation
📝 WalkthroughWalkthroughChangesAlarm reminder refactor
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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.
🧹 Nitpick comments (1)
src/main/java/com/tryna/domain/reminder/controller/AlarmController.java (1)
50-57: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winCover both agreement responses.
Add controller tests for
agreeAlarmTermreturningtrueandfalse. Assert HTTP 200 and the corresponding newly-agreed and already-agreed messages.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/main/java/com/tryna/domain/reminder/controller/AlarmController.java` around lines 50 - 57, Add controller tests for agreeAlarmTerm covering both newlyAgreed=true and newlyAgreed=false outcomes, asserting HTTP 200 and the matching success messages for newly agreeing and already agreeing to the alarm terms.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/main/java/com/tryna/domain/reminder/controller/AlarmController.java`:
- Around line 50-57: Add controller tests for agreeAlarmTerm covering both
newlyAgreed=true and newlyAgreed=false outcomes, asserting HTTP 200 and the
matching success messages for newly agreeing and already agreeing to the alarm
terms.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 9cd69ff6-ee8f-498e-95d9-e492315d052e
📒 Files selected for processing (17)
src/main/java/com/tryna/domain/reminder/controller/AlarmController.javasrc/main/java/com/tryna/domain/reminder/controller/docs/AlarmControllerDocs.javasrc/main/java/com/tryna/domain/reminder/dto/ActionItemReminderResponse.javasrc/main/java/com/tryna/domain/reminder/dto/AlarmCorrectionResponse.javasrc/main/java/com/tryna/domain/reminder/dto/AlarmDetailResponse.javasrc/main/java/com/tryna/domain/reminder/dto/AlarmListResponse.javasrc/main/java/com/tryna/domain/reminder/dto/AlarmPushTokenRequest.javasrc/main/java/com/tryna/domain/reminder/dto/AlarmStateResponse.javasrc/main/java/com/tryna/domain/reminder/dto/EventReminderResponse.javasrc/main/java/com/tryna/domain/reminder/service/AlarmPushTokenService.javasrc/main/java/com/tryna/domain/reminder/service/AlarmQueryService.javasrc/main/java/com/tryna/domain/reminder/service/AlarmReminderDispatchExecutor.javasrc/main/java/com/tryna/domain/reminder/service/AlarmReminderScheduleService.javasrc/main/java/com/tryna/domain/reminder/service/AlarmStateService.javasrc/main/java/com/tryna/domain/reminder/service/AlarmTermService.javasrc/main/java/com/tryna/domain/reminder/service/FcmPushService.javasrc/main/java/com/tryna/domain/reminder/util/AlarmCursorCodec.java
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 이슈 번호
#️⃣ 기능 설명
일정 및 준비/실행 항목 알람 리펙토링
📌 작업 내용
✅ 체크리스트
📸 스크린샷 (선택)
변경 사항
domain.alarm에서domain.reminder로 통합했습니다.boolean결과를 사용합니다.변경 목적
Breaking Changes
AlarmTermService.agreeAlarmTerm(Long)의 반환 타입이void에서boolean으로 변경되었습니다.테스트