[Refactor] 여행 기록 수정 시 삭제된 커스텀 스티커 유지 처리 - #230
Merged
yeonie0309 merged 2 commits intoAug 5, 2026
Merged
Conversation
yangjiae12
reviewed
Aug 4, 2026
Comment on lines
+492
to
+493
| return sticker.getDeletedAt() == null | ||
| || existingStickerIds.contains(sticker.getId()); |
Member
There was a problem hiding this comment.
현재는 삭제된 스티커가 기존에 한 번이라도 배치되어 있었는지만 existingStickerIds.contains()로 확인해서, 요청에서 동일한 스티커를 기존보다 여러 개 추가해도 허용될 수 있을 것 같습니다.
삭제된 스티커의 위치 변경은 허용하되 추가 배치는 막아야 한다면, 스티커 ID별 기존 배치 개수와 요청 개수를 비교해 요청 개수가 더 많을 경우 거부하도록 처리하면 좋을 것 같습니다!
Collaborator
Author
There was a problem hiding this comment.
확인 감사합니다! 기존에는 Set으로 기존 배치 여부만 확인하고 있어서, 삭제된 커스텀 스티커가 기존보다 더 많이 요청되는 케이스를 막지 못할 수 있었습니다.
삭제된 스티커는 기존 배치 유지/위치 변경만 허용하고 추가 배치는 막는 정책이 맞아서, 스티커 ID별 기존 배치 개수와 요청 개수를 비교하도록 수정했습니다.
yangjiae12
deleted the
refactor/224-travel-record-deleted-sticker-update
branch
August 6, 2026 02:23
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.
📌 PR 설명
🔗 연관된 이슈
Resolves: #224
📝 리뷰 요구사항
💻 테스트 결과
수정 전 여행기록 상세 조회 (스티커 id: 100)
논리 삭제된 커스텀 스티커가 기존에 배치된 여행기록 수정 요청 시 COMMON200 응답 확인
수정 후 상세 조회에서 해당 스티커(id:100)가 유지되는 것 확인