[FEATURE] 워터마크 처리 추상화 및 프로파일 스위칭 도입#127
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthrough워터마크 처리 계약과 키 해석기를 추가하고, 로컬 S3 워터마크 처리를 Changes워터마크 처리 추상화
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 |
fervovita
left a comment
There was a problem hiding this comment.
수고하셨습니다!!!
아래 코멘트 확인 부탁드립니다🙏
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/test/java/ditda/backend/domain/commission/draft/service/DraftWatermarkServiceTest.java (1)
36-82: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win이관된 처리 로직의 회귀 테스트도 함께 옮겨 주세요.
현재 테스트는 위임만 검증합니다. 제거된 성공 전이, 업로드, 일반 실패, 영구 실패 검증을
LocalWatermarkProcessorTest로 옮기고WatermarkKeyResolver의 키 변환 및 잘못된 키도 테스트해 주세요.🤖 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/java/ditda/backend/domain/commission/draft/service/DraftWatermarkServiceTest.java` around lines 36 - 82, Extend LocalWatermarkProcessorTest with regression tests for the migrated processing flow: successful transition, upload, ordinary failure, and permanent failure. Add WatermarkKeyResolver tests covering valid key conversion and invalid keys, while keeping DraftWatermarkServiceTest focused on delegation behavior.
🤖 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.
Inline comments:
In
`@src/main/java/ditda/backend/domain/commission/draft/processor/LocalWatermarkProcessor.java`:
- Around line 40-45: Update the exception handling in LocalWatermarkProcessor so
IllegalArgumentException raised by WatermarkKeyResolver.resolve() is represented
by a dedicated permanent-failure exception and routed to
draftWatermarkTransitionService.failPermanently(). Keep transient exceptions on
the existing fail() path and preserve the current image-processing failure
handling.
---
Nitpick comments:
In
`@src/test/java/ditda/backend/domain/commission/draft/service/DraftWatermarkServiceTest.java`:
- Around line 36-82: Extend LocalWatermarkProcessorTest with regression tests
for the migrated processing flow: successful transition, upload, ordinary
failure, and permanent failure. Add WatermarkKeyResolver tests covering valid
key conversion and invalid keys, while keeping DraftWatermarkServiceTest focused
on delegation behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro Plus
Run ID: 782365f2-4b9e-40ee-89c4-f40154717974
📒 Files selected for processing (5)
src/main/java/ditda/backend/domain/commission/draft/processor/LocalWatermarkProcessor.javasrc/main/java/ditda/backend/domain/commission/draft/processor/WatermarkKeyResolver.javasrc/main/java/ditda/backend/domain/commission/draft/processor/WatermarkProcessor.javasrc/main/java/ditda/backend/domain/commission/draft/service/DraftWatermarkService.javasrc/test/java/ditda/backend/domain/commission/draft/service/DraftWatermarkServiceTest.java
fervovita
left a comment
There was a problem hiding this comment.
수고하셨습니다🚀
merge하셔도 될 것 같아요!!
🚀 Related issue
Closes #126
#️⃣ Summary
🔧 Changes
WatermarkProcessor인터페이스 도입LocalWatermarkProcessor로 이동wm/경로) 파생 로직을WatermarkKeyResolver로 분리📸 Test Evidence
💬 Reviewer Notes
Summary by CodeRabbit
새 기능
개선
테스트