Conversation
📝 WalkthroughWalkthrough알림 시스템에서 Changes
Possibly related PRs
Suggested reviewers
🚥 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
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
src/main/java/com/umc/nuvibe/domain/notification/vo/NotificationType.java (1)
28-47: 🧹 Nitpick | 🔵 Trivial태그 포맷팅 로직 중복 — 헬퍼 메서드 추출을 고려해 보세요.
formatPushMessage,formatMainMessage,formatActionMessage세 메서드 모두 동일한 태그 포맷팅 및 치환 로직을 반복하고 있습니다.private헬퍼 메서드로 추출하면 유지보수성이 향상됩니다.♻️ 헬퍼 메서드 추출 제안
+ private String replaceTag(String template, String tag) { + String formattedTag = (tag != null && !tag.isBlank()) ? "#" + tag + " " : ""; + return template + .replace("{{tag}} ", formattedTag) + .replace("{{tag}}", formattedTag.trim()); + } + public String formatPushMessage(String tag) { - String formattedTag = (tag != null && !tag.isBlank()) ? "#" + tag + " " : ""; - return pushMessage - .replace("{{tag}} ", formattedTag) - .replace("{{tag}}", formattedTag.trim()); + return replaceTag(pushMessage, tag); } public String formatMainMessage(String tag) { - String formattedTag = (tag != null && !tag.isBlank()) ? "#" + tag + " " : ""; - return mainMessage - .replace("{{tag}} ", formattedTag) - .replace("{{tag}}", formattedTag.trim()); + return replaceTag(mainMessage, tag); } public String formatActionMessage(String tag) { - String formattedTag = (tag != null && !tag.isBlank()) ? "#" + tag + " " : ""; - return actionMessage - .replace("{{tag}} ", formattedTag) - .replace("{{tag}}", formattedTag.trim()); + return replaceTag(actionMessage, tag); }src/main/java/com/umc/nuvibe/domain/notification/scheduler/NotificationScheduler.java (1)
182-184:⚠️ Potential issue | 🟡 Minor주석의 시간 표기 오류: "오전 18시" → "오후 6시" 또는 "18시"
Line 182의 주석에
오전 18시라고 되어 있으나, 크론 표현식0 0 18 1 * *은 18:00(오후 6시)입니다.오전은 AM을 의미하므로 모순됩니다.📝 주석 수정 제안
- // NOTI-09: 전체 리캡 알림 - // 매월 1일 오전 18시에 실행 + // NOTI-09: 전체 리캡 알림 + // 매월 1일 18시에 실행
🎋 이슈 및 작업중인 브랜치
🔑 주요 내용
Check List
Summary by CodeRabbit
릴리스 노트