refactor(report): 월간 리포트 v1/v2 완전 분리 및 교차 생성 차단 로직 추가#172
Merged
Conversation
v2 전용 Service/TxService/Listener/EventDto/PendingService/LlmClient 클래스 분리, 기존 v1 컴포넌트는 v1 흐름으로 복구할 수 있게 책임 재정렬
MonthlyReportCrossVersionGuardService 추가
dev/prod 배포 워크플로우에서 MONTHLY_PROMPT 제거하고 MONTHLY_V1_PROMPT, MONTHLY_V2_BASELINE_PROMPT 시크릿 디코딩/환경변수 export 추가
…ortServiceV2 수정 MonthlyReportCrossVersionGuardService - status가 COMPLETED와 FAILED가 아닌 모든 경우에 생성 중 예외 처리를 던지도록 수정, PendingMonthlyReportServiceV2 - status = "TEXT_COMPLETED"인 경우에도 생성 중 예외 처리를 던지도록 수정
Collaborator
|
LGTM! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 요약(Summary)
배경
기존 월간 리포트 로직이 v2로 치환되면서 v1 복구 및 v1/v2 독립 운영이 어려운 상태였습니다.
이번 작업에서 v1/v2 도메인을 분리하고, 두 버전 간 중복 생성 방지 규칙을 명확히 적용했습니다.
주요 변경사항
1) 월간 리포트 v1/v2 분리 정리
Service/TxService/Listener/DTO/PendingService/LlmClient계층 정리2) v1/v2 교차 생성 차단 추가
MonthlyReportCrossVersionGuardService신규 추가PendingMonthlyReportService,PendingMonthlyReportServiceV2에서 생성 전 교차 검증 수행monthStartDate에 상대 버전 리포트가COMPLETED면 생성 차단 (MONTHLY_REPORT_ALREADY_COMPLETED)monthStartDate에 상대 버전 리포트가FAILED제외 상태면 생성 차단 (MONTHLY_REPORT_IN_PROGRESS)3) 배포 워크플로우 프롬프트 시크릿 분리
.github/workflows/deploy-to-dev-ec2.yml.github/workflows/deploy-to-prod-ec2.ymlMONTHLY_PROMPT제거 후 아래로 분리MONTHLY_V1_PROMPTMONTHLY_V2_BASELINE_PROMPT🔗 Related Issue
💬 공유사항
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.