Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds admin participant listing and Excel export endpoints for personal and team challenges; introduces DTOs, converters, and Excel mappers; refactors personal challenge queries via an executor/predicate pattern; implements participant queries for challenge groups; adds memberKey resolution utilities; updates repositories; and makes minor controller and entity adjustments. Changes
Sequence Diagram(s)sequenceDiagram
participant Admin as Admin Client
participant C as Controller (AdminChallengeGroupQueryController)
participant Q as ChallengeGroupQuery
participant Conv as MemberKeyConverter
participant Excel as ExcelDownloader
Admin->>C: GET /{challengeId}/groups/participants?page&size
C->>Q: findParticipantByChallenge(challengeId, page, size)
Q-->>C: Page<AdminTeamParticipantDto> (memberId populated)
C->>Conv: convertPage(page)
Conv-->>C: page with memberKey set
C-->>Admin: ApiTemplate<PageTemplate<...>>
Admin->>C: GET /{challengeId}/groups/participants/excel
C->>Q: findParticipantByChallengeForExcel(challengeId)
Q-->>C: List<AdminTeamParticipantDto> (memberId populated)
C->>Conv: convert(list)
Conv-->>C: list with memberKey set
C->>Excel: downloadAsStream(list, response)
Excel-->>Admin: Excel stream
sequenceDiagram
participant Admin as Admin Client
participant PC as AdminPersonalChallengeQueryController
participant PQ as PersonalChallengeQueryImpl
participant Exec as PersonalChallengeQueryExecutor
participant Conv as MemberKeyConverter
participant Excel as ExcelDownloader
Admin->>PC: GET /{challengeId}/participants
PC->>PQ: findParticipantByChallenge(challengeId, page, size)
PQ->>Exec: executeParticipantQueryForAdmin(pagination, challengeId)
Exec-->>PQ: List<AdminPersonalParticipationDto>
PQ-->>PC: PageTemplate<...>
PC->>Conv: convertPage(page)
Conv-->>PC: page with memberKey
PC-->>Admin: ApiTemplate<PageTemplate<...>>
Admin->>PC: GET /{challengeId}/participants/excel
PC->>PQ: findParticipantByChallengeForExcel(challengeId)
PQ->>Exec: executeParticipantQueryForExcel(challengeId)
Exec-->>PQ: List<AdminPersonalParticipationDto>
PQ-->>PC: list
PC->>Conv: convert(list)
Conv-->>PC: list with memberKey
PC->>Excel: downloadAsStream(list, response)
Excel-->>Admin: Excel stream
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40–55 minutes Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (37)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Unit Test Coverage Report
|
#️⃣ 연관된 이슈
📝 작업 내용
📷 스크린샷
💬 리뷰 요구사항(선택)
📌 PR 진행 시 참고사항
P1: 꼭 반영해 주세요 (Request Changes) – 이슈나 취약점 관련P2: 반영을 고려해 주세요 (Comment) – 개선 의견P3: 단순 제안 (Chore)Summary by CodeRabbit