Skip to content

Conversation

@ayoung-dev
Copy link
Collaborator

resolved :

📌 과제 설명

커뮤니티 댓글 삭제 기능

👩‍💻 요구 사항과 구현 내용

  • 커뮤니티 댓글 삭제
  • 작성자가 아닐 경우 예외 처리

✅ PR 포인트 & 궁금한 점

@ayoung-dev ayoung-dev self-assigned this Nov 28, 2024
@ayoung-dev ayoung-dev linked an issue Nov 28, 2024 that may be closed by this pull request
3 tasks
private final CommunityCommentRepository communityCommentRepository;

@Override
public void deleteCommunityComment(UUID writerId, Long id) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드가 깔끔하네요

@7zrv
Copy link
Collaborator

7zrv commented Nov 28, 2024

고생하셨습니다!

Copy link
Collaborator

@m-a-king m-a-king left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@Override
public void deleteCommunityComment(UUID writerId, Long id) {

CommunityComment communityComment = getCommunityBoardById(id);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CommunityComment communityComment = getCommunityBoardById(id);
CommunityComment communityComment = getCommunityCommentById(id);

이게 맞겠죠?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

와 감사합니다
수정했습니다!

- getCommunityBoardById -> getCommunityCommentById
Copy link
Collaborator

@leebs0521 leebs0521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨씁니다~

}

private CommunityComment getCommunityBoardById(Long id) {
return communityCommentRepository.findById(id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 getCommunityCommentById() 인 것 같아여

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 이게 위에 있는 내용인 것 같네요

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 제가 실수했어요..
수정했습니다!

@sonarqubecloud
Copy link

@ayoung-dev ayoung-dev merged commit 320ae88 into main Nov 29, 2024
2 checks passed
@ayoung-dev ayoung-dev deleted the feature/68-add-community-comment-delete branch November 29, 2024 01:44
leebs0521 pushed a commit that referenced this pull request Nov 29, 2024
* test(community): CommunityComment 삭제 기능 테스트 작성

* test(community): CommunityComment 삭제 Usecase 추가 및 Service 구현

* test(community): CommunityComment 작성자 확인 메서드 및 권한 예외 메세지 추가

* refactor(community): 코드 리뷰 사항 반영

- getCommunityBoardById -> getCommunityCommentById
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] 커뮤니티 댓글 삭제 기능

5 participants