Repository navigation
[refactor/#422] RecommendationSet 개념 1차 도입 - #465
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.
❤️ 기능 설명
문서상 표준 용어인
RecommendationSet을 코드에 1차로 반영하고, 추천 목록 교체 흐름을 캡슐화했습니다.RecommendationSet이 post 중복 금지, rank 1..N 연속, 크기 상한을 생성 시점에 검증합니다. 공개 계약은userId/postId만 사용하고 JPA 엔티티는 노출하지 않습니다.RecommendationSetReplacer가 기존 추천 이력화, 삭제, 새 추천 저장을 한 트랜잭션에서 수행합니다.LlmRecommendationService의 기존 절차를 순서 그대로 옮겼습니다.LlmRecommendationService는 MMR 결과를RecommendationSet으로 변환해 Replacer에 위임합니다.docs/ddd를 현재 코드에 맞게 갱신했습니다. 크기 상한은 20개에서 코드 기준 30개(mmrFinalSize)로 정정했습니다.schema, JPA 연관관계, API 응답 shape는 바꾸지 않았습니다.
./gradlew test -PexcludeIntegration: 407건 성공RecommendationIntegrationTest: 로컬에 Docker가 없어 미실행, CI 결과 확인 필요연결된 issue
close #422
🩷 Approve 하기 전 확인해주세요!
replace(User, RecommendationSet)가User엔티티를 받습니다. 영속화에 필요한 임시 계약으로 Replacer 안에 가두었고, ID 기반 전환은 #453에서 다룹니다.saveAll입니다. batch 전환은 [IMPROVE] 추천 목록 교체 시 JDBC batch insert 적용 #462, 리뷰 후속 과제는 #464로 분리했습니다.✅ 체크리스트