[REFACTOR] 댓글/알림/탈퇴 흐름 리팩터링 및 공통 로직 정리#541
Merged
Merged
Conversation
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
댓글 도메인, 알림 전송, 회원 탈퇴 처리, 공통 엔티티/유틸 정리를 묶어서 정리했습니다.
댓글은 조회/수정/삭제 흐름을 단순화하고, 알림은 이벤트/정책 기반으로 분리했으며, 탈퇴 시 데이터 정리와 공통 베이스 엔티티 사용을 정리했습니다.
또한 FK 구조로 인해 댓글이 삭제되지 않는 버그를 수정했습니다.
변경 상세 내역
댓글 작성 권한 체크를 컨트롤러에서 제거하고 애플리케이션/도메인 책임으로 이동
댓글 수정/삭제 로직을 feed 의존 경로와 분리하고, 단일 댓글 경로를 정리
댓글 조회를 Projection + QueryDSL 기반으로 변경
댓글 관련 불필요한 CommentAuthorizationValidator 제거
댓글 엔티티 정리
댓글 신고/차단 정책 보완
댓글 작성 시 알림 전송 로직을 이벤트/리스너/정책으로 분리
회원 탈퇴 시 피드/댓글 작성자 unknown 처리 정리
Action enum 제거 및 관련 코드 정리
불필요한 트랜잭션 정리
데이터 베이스 구조에 맞게 삭제 로직을 수정 (삭제가 안되던 버그)
To Reviewers
References