[FIX] 컬렉션 작품 표시 순서를 요청 순서대로 보존 - #602
Merged
Merged
Conversation
[FIX] 컬렉션 작품 표시 순서를 요청 순서대로 보존
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.
Related Issue
Key Changes
novelIds배열 인덱스를collection_novel.display_order로 저장하고, 순서만 재배치할 때 기존 연결 행과created_date를 유지합니다. (8bc84a8)RECENT/OLD정렬과 사용자별·좋아요한 컬렉션 카드의 작품 미리보기를display_order기준으로 통일했습니다. (8bc84a8)dev를 충돌 없이 병합해 현재 배포 대상 기준으로 검증했습니다.신규 환경용
collection_novel전체 DDL기존 환경용 migration DDL
MySQL 8.0의
ROW_NUMBER()를 사용합니다. backfill 검증 두 쿼리가 모두0을 반환한 경우에만NOT NULL전환 이후 단계를 진행해야 합니다.To Reviewers
display_order는 컬렉션 안에서 애플리케이션이0..n-1연속성을 보장합니다. 순서 맞바꿈의 중간 상태에서 충돌하지 않도록(collection_id, display_order)유니크 제약은 두지 않았습니다.0인지 확인한 뒤NOT NULL과 인덱스 교체를 적용해야 합니다. 기존 행은 현재 화면 순서인created_date DESC, collection_novel_id DESC를 보존합니다.recentNovels도 호환성을 위해 유지했습니다.References