Repository navigation
[FEAT] 챌린지 신고 기능 추가 - #371
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthrough챌린지 신고 API와 서비스 로직이 추가되었습니다. 참여 상태, 방장 여부, 중복 신고를 검증하고 Changes챌린지 신고 기능
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds a localized challenge-reporting API and related persistence logic; no actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant 신고자
participant ReportController
participant ReportServiceImpl
participant ChallengeRepository
participant ChallengeReportRepository
신고자->>ReportController: POST /api/v1/report/challenge
ReportController->>ReportServiceImpl: reportChallenge(reporter, request)
ReportServiceImpl->>ChallengeRepository: 챌린지 조회 및 참여 상태 확인
ReportServiceImpl->>ChallengeReportRepository: 중복 신고 확인
ReportServiceImpl->>ChallengeReportRepository: ChallengeReport 저장
ReportServiceImpl-->>ReportController: 성공 응답
ReportController-->>신고자: 신고 완료
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
#️⃣ 연관된 이슈
✨ 작업 내용 (Summary)
챌린지 참여자가 부적절한 챌린지를 신고할 수 있도록 신고 API를 구현했습니다.
챌린지 신고 API 추가(POST /api/v1/report/challenge)
해당 챌린지에 참가중인 사용자만 신고 가능(시작 전, 진행 중 둘 다 가능)
방장은 자신의 챌린지 신고 불가
동일 사용자의 동일 챌린지 중복 신고 방지
챌린지 신고 테이블 생성
별도 알림이나 챌린지 제재 로직은 적용하지 않음
V2.45__create_challenge_report.sql 추가
✅ 변경 사항 체크리스트
🧪 테스트 결과
📸 스크린샷
💬 리뷰 요구사항
📎 참고 자료
Summary by CodeRabbit
새로운 기능
유효성 검사
오류 처리