🔀 :: [#821] - 이메일 인증 코드 검증시 사용처도 같이 받도록 변경 - #822
Conversation
|
Warning Review limit reached
Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Walkthrough이메일 인증 요청과 내부 DTO에 Changes이메일 인증 용도 검증
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/test/kotlin/com/dcd/server/core/domain/auth/service/VerifyEmailAuthServiceImplTest.kt (1)
27-54: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win
usage불일치 시나리오를 회귀 테스트로 추가하세요.현재 테스트는 요청 DTO와 저장된
EmailAuth모두testUsage를 사용하므로,VerifyEmailAuthServiceImpl.kt의 Line 31-33 분기가 검증되지 않습니다. 저장된 인증의usage를 다른 값으로 설정하고NotFoundAuthCodeException발생 및save미호출을 검증해야 합니다.🤖 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/dcd/server/core/domain/auth/service/VerifyEmailAuthServiceImplTest.kt` around lines 27 - 54, Add a regression case to the verifyCode test where the persisted EmailAuth usage differs from the request DTO’s testUsage. Assert that serviceImpl.verifyCode throws NotFoundAuthCodeException and verify commandEmailAuthPort.save is not called for this mismatch.
🤖 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.
Nitpick comments:
In
`@src/test/kotlin/com/dcd/server/core/domain/auth/service/VerifyEmailAuthServiceImplTest.kt`:
- Around line 27-54: Add a regression case to the verifyCode test where the
persisted EmailAuth usage differs from the request DTO’s testUsage. Assert that
serviceImpl.verifyCode throws NotFoundAuthCodeException and verify
commandEmailAuthPort.save is not called for this mismatch.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 5b5d30c3-8943-4314-becf-d7da3341fceb
📒 Files selected for processing (7)
src/main/kotlin/com/dcd/server/core/domain/auth/dto/request/CertificateMailReqDto.ktsrc/main/kotlin/com/dcd/server/core/domain/auth/service/VerifyEmailAuthService.ktsrc/main/kotlin/com/dcd/server/core/domain/auth/service/impl/VerifyEmailAuthServiceImpl.ktsrc/main/kotlin/com/dcd/server/core/domain/auth/usecase/AuthenticateMailUseCase.ktsrc/main/kotlin/com/dcd/server/presentation/domain/auth/data/exetension/AuthRequestDataExtension.ktsrc/main/kotlin/com/dcd/server/presentation/domain/auth/data/request/CertificateMailRequest.ktsrc/test/kotlin/com/dcd/server/core/domain/auth/service/VerifyEmailAuthServiceImplTest.kt
개요
작업내용
체크리스트
Summary by CodeRabbit
새로운 기능
버그 수정
테스트