Conversation
wooodypark
approved these changes
Jul 29, 2025
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.
연관 이슈
내용
기존 방식의 문제점
고정 대상만 갱신하고 나머지 아이템은 별도 처리 없이 그대로 유지
→ 순서 충돌이나 중복, 비정상 재배치 발생 가능
order를 직접 지정한 일부 아이템만 처리하고
나머지 아이템은 전체 맥락 없이 빠짐없이 채워지지 않음
fixedId를 기존 아이템과 비교할 때 item.id가 아닌 item.item_id로 비교 안 하는 경우 있음
→ 아이템을 찾지 못해 실패하거나 잘못된 매핑이 발생
개선 방법
전체 아이템을 기준으로 고정할 아이템을 우선 배치,
나머지는 기존 순서를 유지한 채 빈 자리에 자동 채움
고정된 order는 중복 없이 지정되도록 검증하고,
전체 아이템 수 기준으로 배열 길이를 정확히 유지
기존 아이템 리스트에서 ID 매칭은 item.item_id로 명확히 비교