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.
📝작업 내용
CommentResponse에 Boolean commentIsLiked 필드 추가 — 댓글 조회 시 현재 사용자의 좋아요 여부를 응답에 포함하도록 변경
CommentRepositoryImpl을 Projection 방식으로 전환 — FeedRepositoryImpl의 isLikedExpression
패턴과 동일하게 JPAExpressions.exists() 서브쿼리를 사용하여 DB 레벨에서 좋아요 여부를 판단
CommentQueryServiceImpl에서 현재 사용자 조회 후 Repository에 전달 — UserContextHolder로 로그인 사용자를 가져오고, 비로그인 시 false를 반환하도록 처리 + 관련 테스트 & RestDocs 업데이트
스크린샷 (선택)
API 응답 사진: (API 응답 스크린샷을 첨부해주세요.)

API 명세서 사진: (API 명세서 스크린샷을 첨부해주세요.)





테스트 커버리지 사진: (테스트 커버리지 스크린샷을 첨부해주세요.)

💬리뷰 요구사항(선택)
#️⃣연관된 이슈