[FEAT] OAuth 인가 요청 만료 데이터 삭제 배치 처리 - #166
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughOAuth 인가 요청 저장소에 상태 기반 만료 삭제 조건을 추가했습니다. 7일 보존 기준의 일일 정리 스케줄러를 추가했습니다. 서비스와 스케줄러의 시간 계산에 주입된 ChangesOAuth 인가 요청 정리
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Expired OAuth authorization requests are now removed daily after seven days only for terminal or legacy states, while processing requests remain preserved. The deletion scope and retention boundary are covered by the current implementation and tests. Sequence Diagram(s)sequenceDiagram
participant OAuthAuthorizationRequestCleanupScheduler
participant Clock
participant OAuthAuthorizationRequestRepository
participant OAuthAuthorizationRequestTable
OAuthAuthorizationRequestCleanupScheduler->>Clock: 현재 시각 조회
Clock-->>OAuthAuthorizationRequestCleanupScheduler: 기준 시각 반환
OAuthAuthorizationRequestCleanupScheduler->>OAuthAuthorizationRequestRepository: 만료 요청 삭제 호출
OAuthAuthorizationRequestRepository->>OAuthAuthorizationRequestTable: 기준 시각 및 상태 조건 적용
OAuthAuthorizationRequestTable-->>OAuthAuthorizationRequestRepository: 삭제 건수 반환
OAuthAuthorizationRequestRepository-->>OAuthAuthorizationRequestCleanupScheduler: 삭제 결과 반환
🚥 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 |
📌 관련 이슈
✨ 작업 내용
oauth_authorization_request데이터를 매일 새벽 3시에 삭제하도록 배치를 추가LEGACY,ISSUED,SUCCEEDED,FAILED상태만 삭제하고, 처리 중인PROCESSING상태는 보존하도록 구성Clock주입 방식으로 통일PROCESSING상태 보존 및 7일 보존 기간을 검증하는 테스트를 추가📸 UI 작업 시
X
✅ 체크 리스트
Summary by CodeRabbit
새로운 기능
버그 수정
테스트