Merged
Conversation
|
Caution Review failedThe pull request is closed. 📋 Walkthrough투표 상태 관리 흐름을 리팩토링했습니다. 이전에는 AI 유사도 검증 요청 전송 시점에 투표 상태를 IN_PROGRESS로 변경했으나, 이제 요청 서비스에서 상태 업데이트 및 저장을 제거하고, 리스너에서 AI 응답을 처리할 때만 상태를 IN_PROGRESS로 설정하도록 변경했습니다. 📊 Changes
🔄 Sequence DiagramsequenceDiagram
participant Client
participant AiSimilarityRequestService as Request Service
participant RabbitMQ
participant SimilarityCheckListener as Listener
participant DB
Client->>AiSimilarityRequestService: 유사도 검증 요청
AiSimilarityRequestService->>DB: 투표 상태 조회 (PENDING)
AiSimilarityRequestService->>RabbitMQ: 검증 DTO 발행
Note over AiSimilarityRequestService: 상태 변경 없음<br/>PENDING 유지
RabbitMQ->>SimilarityCheckListener: 메시지 수신
SimilarityCheckListener->>DB: 투표 엔티티 로드
SimilarityCheckListener->>SimilarityCheckListener: 상태를 IN_PROGRESS로 설정
SimilarityCheckListener->>DB: AI 응답 요약 데이터 조회
alt 응답 유효
SimilarityCheckListener->>SimilarityCheckListener: 가중치 계산 및 적용
SimilarityCheckListener->>DB: 투표 엔티티 저장 (IN_PROGRESS)
else 응답 무효
SimilarityCheckListener->>SimilarityCheckListener: 오류 처리
end
⏱️ Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
📚 Possibly related PRs
🐰 Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
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 |
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 by CodeRabbit
릴리스 노트
Refactor
Tests