💫 [feature] - 관리자 검수 pending에 photoUrl/imageUrls 추가 - #115
Conversation
photoKey/imageKeys는 유지하고 photoUrl/imageUrls를 응답에 추가한다.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughPending mission and community mission review APIs now generate S3 presigned GET URLs from stored image keys. Response DTOs expose these URLs, and application/controller tests validate URL generation and serialization. ChangesAdmin review presigned URLs
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 (1)
src/test/kotlin/com/zerost/api/mission/application/AdminMissionReviewQueryServiceTest.kt (1)
27-37: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winMake the presigning stub match the fixture’s actual
photoKey.
photoKeyis never passed tocreateMissionCompletion, so the service signscompletion.photoKey, not necessarily this local value. Derive the variable fromcompletion.photoKeyor pass it explicitly into the fixture; otherwise the stub and assertion can target the wrong key.Proposed fix
val completion = createMissionCompletion( id = 12L, user = user, mission = mission, status = MissionCompletionStatus.PENDING, ) - val photoKey = "missions/1/1/2026/07/18/mission-1.jpg" + val photoKey = completion.photoKeyAlso applies to: 47-48
🤖 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/test/kotlin/com/zerost/api/mission/application/AdminMissionReviewQueryServiceTest.kt` around lines 27 - 37, Update the test setup around createMissionCompletion so the photoKey used by createPresignedGetUrl and its assertions matches completion.photoKey; either derive the local variable from completion.photoKey or pass the intended key explicitly into the fixture, ensuring the stub targets the key the service actually signs.
🤖 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.
Outside diff comments:
In
`@src/test/kotlin/com/zerost/api/mission/application/AdminMissionReviewQueryServiceTest.kt`:
- Around line 27-37: Update the test setup around createMissionCompletion so the
photoKey used by createPresignedGetUrl and its assertions matches
completion.photoKey; either derive the local variable from completion.photoKey
or pass the intended key explicitly into the fixture, ensuring the stub targets
the key the service actually signs.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: b9652c34-d18a-49e3-be55-c5d7b97ea21b
📒 Files selected for processing (9)
src/main/kotlin/com/zerost/api/communitymission/application/AdminCommunityMissionReviewQueryService.ktsrc/main/kotlin/com/zerost/api/communitymission/presentation/dto/AdminCommunityMissionProofReviewItemResponse.ktsrc/main/kotlin/com/zerost/api/file/application/FileUploadService.ktsrc/main/kotlin/com/zerost/api/mission/application/AdminMissionReviewQueryService.ktsrc/main/kotlin/com/zerost/api/mission/presentation/dto/AdminMissionReviewItemResponse.ktsrc/test/kotlin/com/zerost/api/communitymission/application/AdminCommunityMissionReviewQueryServiceTest.ktsrc/test/kotlin/com/zerost/api/communitymission/presentation/AdminCommunityMissionReviewControllerTest.ktsrc/test/kotlin/com/zerost/api/mission/application/AdminMissionReviewQueryServiceTest.ktsrc/test/kotlin/com/zerost/api/mission/presentation/AdminMissionReviewControllerTest.kt
CodeRabbit 리뷰 반영.
|
CodeRabbit 리뷰 반영: |
#️⃣ Issue Number
📝 요약(Summary)
GET /api/v1/admin/missions/completions/pending응답에photoUrl추가GET /api/v1/admin/community-missions/proofs/pending응답에imageUrls추가photoKey/imageKeys유지 (additive)app.storage.s3.presigned-url-duration-seconds, 기본 600초)📝 리뷰 요청사항
photoUrl/imageUrls우선 사용 중 (team-0st/FE 🛠️ [fix] users device_id 제거 마이그레이션 재배포 실패 수정 #77)💻 테스트 결과
AdminMissionReview*Test,AdminCommunityMissionReview*Test통과Notion
Summary by CodeRabbit