Feat: 커밋 추천 매칭 및 신뢰도 저장 구현#23
Merged
Merged
Conversation
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.
🎯 작업 내용
주요 변경사항
POST /api/decisions/{decisionId}/commit/match를 호출할 수 있습니다.상세 내용
결정사항 단위 커밋 추천 매칭 API 추가
POST /api/decisions/{decisionId}/commit/matchtop_k는 서버에서 적용사항별 추천 결과 최대 5개로 고정추천 결과 저장 로직 추가
Decision_Commits,Application_Commits에 저장CommitConnectionRepository.findConnectedCommitIds()로 후보 커밋 중 연결된 커밋을 한 번에 조회 하여 이미 적용사항에 연결된 커밋은 추천 응답과 저장 대상에서 제외FastAPI 응답 fallback 처리
commit_id가 없어repository_id + commit_hash로 DB 커밋을 찾음 (커밋 분석 요청시 commit_id를 전달해주고있지 않기 때문)application_id가 없으면application_title로 현재 결정사항의 적용사항을 찾음회의 분석 후 자동 매칭 실행
테스트용 API 추가
POST /api/decisions/{decisionId}/commit/match/testresult를 포함한 전체 응답 또는result객체만 전달해도 처리사용하지 않는 추천 저장 API 제거
POST /api/applications/{decisionId}/recommendationsAPI 삭제추천 매칭 신뢰도 저장 및 결정사항 신뢰도 갱신
Decision_Commits가 아닌Application_Commits에서 관리하도록 정리Decision_Commits.reason엔티티 필드와 저장 로직을 제거Application_Commits.reason,Application_Commits.confidence를 응답하도록 변경confidence평균을 계산해Decision.reliability_score에 저장하도록 추가Decision.reliability_score를null로 갱신DecisionRepository.updateReliabilityScore()로 직접 update 쿼리로 신뢰도점수를 갱신하도록함✅ 체크리스트
📋 API 명세서
💬 리뷰 요청사항 (선택)
📚 참고 자료 (선택)
ALTER TABLE decision_commits DROP COLUMN reason;