-
Notifications
You must be signed in to change notification settings - Fork 1
[CHORE] 큐레이션 로직 구현 #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gdbs1107
wants to merge
16
commits into
develop
Choose a base branch
from
chore/#451/curation
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+470
−73
Open
[CHORE] 큐레이션 로직 구현 #417
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
446d35e
chore:#451 브랜드 필드 추가
gdbs1107 5bc1c2d
feat:#451 Comment 수정
gdbs1107 123babf
chore:#451 필요한 필드 추가
gdbs1107 14a7c96
chore:#451 큐레이션 소스 enum 추가
gdbs1107 93c3a76
chore:#451 추천 가구 엔티티에 source 필드 추가
gdbs1107 1d9c767
chore:#451 큐레이션 가구 엔티티 source 기반 유니크 키 반영
gdbs1107 abaf0af
chore:#451 원본 상품 엔티티에 furnitureTag nullable 매핑 추가
gdbs1107 1e481ef
chore:#451 소스 분리 및 raw 태그 조회용 레포지토리 메서드 반영
gdbs1107 8272407
chore:#451 서비스 인터페이스에 source 파라미터 반영
gdbs1107 cbafe50
chore:#451 source 기반 큐레이션 캐시 저장 조회 로직 반영
gdbs1107 4b8750a
chore:#451 furnitureTag 기준 raw 후보 조회 로직 추가
gdbs1107 88cb858
chore:#451 네이버 raw 큐레이션 병합 응답 로직 반영
gdbs1107 d7ac98d
chore:#451 배치에 raw 큐레이션 처리와 csv 매핑 반영
gdbs1107 5692ab8
chore:#451 불필요한 필드 삭제:
gdbs1107 9d424b0
chore:#451 큐레이션 응답 DTO에 clientColors 포함 신규 필드 확장
gdbs1107 606b0d6
chore:#451 큐레이션 응답에 RAW 메타와 찜 개수 집계 로직 반영
gdbs1107 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
6 changes: 6 additions & 0 deletions
6
src/main/java/or/sopt/houme/domain/furniture/model/entity/CurationSource.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| package or.sopt.houme.domain.furniture.model.entity; | ||
|
|
||
| public enum CurationSource { | ||
| NAVER, | ||
| RAW | ||
| } |
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
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
12 changes: 12 additions & 0 deletions
12
...ain/java/or/sopt/houme/domain/furniture/repository/CurationRawProductColorRepository.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package or.sopt.houme.domain.furniture.repository; | ||
|
|
||
| import or.sopt.houme.domain.furniture.model.entity.CurationRawProductColor; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
| import org.springframework.stereotype.Repository; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| @Repository | ||
| public interface CurationRawProductColorRepository extends JpaRepository<CurationRawProductColor, Long> { | ||
| List<CurationRawProductColor> findAllByCurationRawProductIdIn(List<Long> curationRawProductIds); | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: TEAM-HOUME/HOUME-SERVER
Length of output: 49
🏁 Script executed:
Repository: TEAM-HOUME/HOUME-SERVER
Length of output: 49
🏁 Script executed:
Repository: TEAM-HOUME/HOUME-SERVER
Length of output: 83
🏁 Script executed:
Repository: TEAM-HOUME/HOUME-SERVER
Length of output: 51
🏁 Script executed:
# CurationFurniture.java 전체 내용 확인 cat src/main/java/or/sopt/houme/domain/furniture/model/entity/CurationFurniture.javaRepository: TEAM-HOUME/HOUME-SERVER
Length of output: 2258
유니크 제약 변경 - 데이터 정합성 확인 필요
제약 조건이
(furniture_tag_id, rank)→(furniture_tag_id, source, rank)로 변경된 건 로직상 정확해요. NAVER/RAW 각각 동일 태그에서 rank 1~5를 가질 수 있어야 하니까요.다만 한 가지 확인 필요한데, 만약 현재 운영 DB에 기존 제약 조건으로 인해
(furniture_tag_id, rank)조합이 유일한 데이터들이 있다면, 새 제약이 적용될 때 데이터 정합성 이슈가 발생할 수 있습니다. 예를 들어 같은 tag + rank지만 서로 다른 source의 데이터가 남아있으면 제약 위반이 됩니다.마이그레이션 전에 기존 데이터를 확인하고, 필요하면 source 값을 먼저 채우거나 중복 데이터를 정리하는 절차가 필요할 것 같습니다.
🤖 Prompt for AI Agents