Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
zerochani
approved these changes
Feb 13, 2026
SungMinju
approved these changes
Feb 14, 2026
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.
💡 작업 개요
이전에 한 가게에
isActive = true인 배치도가 1개 이상 존재하는 것을 방지하기 위해 Unique 제약 조건을 추가했습니다.기존 배치도가 삭제되면
isActive = false, store_active_key = null로 변경되야 합니다.배치도 삭제 - 재생성 로직이 하나의 트랜잭션에서 동작하여 JPA 영속성 컨텍스트에서는 아직 반영되지 않아
store_active_key는 null로 값이 바뀌지 않아 Unique 제약 위반을 하게 됩니다.그래서
tableLayoutRepository.delete()이후flush()를 추가하여 DB에 즉시 반영되도록 코드를 수정했습니다.✅ 작업 내용
🧪 테스트 내용
isActive = false, store_active_key = null로 변경된 것을 확인.📝 기타 참고 사항