feat: 피드 수정/삭제 시 참조를 잃은 태그 또한 삭제#129
Merged
Merged
Conversation
1 task
gffd94
approved these changes
Jun 11, 2025
ksw733
approved these changes
Jun 12, 2025
audwls239
approved these changes
Jun 12, 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.
관련 이슈
close #101
fix #126
개요
[FEAT] 피드 삭제 시 태그가 참조하는 피드가 없을 경우 태그도 삭제 #101
피드의 수정/삭제 시, 연관 postTag를 모두 삭제하게 구현되어 있습니다.
이후, postTag 테이블의 모든 tag id를 조회하고,
해당 리스트에 존재하지 않는 tag id를 가진 모든 태그를 삭제합니다.
[BUG] 피드 수정 시 1개 이상의 태그가 존재했다면, 태그를 비우는 것이 불가능 #126
피드 수정 시 request DTO에 태그가 존재할 경우에만 postTag의 관련 컬럼들을 삭제하게 되어 있습니다.
이를 DTO에 태그가 존재하지 않더라도 삭제할 수 있도록 수정했습니다.