Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/회원탈퇴 #261 #263

Merged
merged 5 commits into from
Aug 21, 2023
Merged

Feat/회원탈퇴 #261 #263

merged 5 commits into from
Aug 21, 2023

Conversation

Lightieey
Copy link
Member

@Lightieey Lightieey commented Aug 20, 2023

✅ 체크리스트

  • 테스트 코드가 잘 통과되나요?
  • 이 프로젝트의 코드 스타일을 따르나요?
  • 문서변경이 필요한 경우, 변경하였나요?

📋 변경 유형

  • Bug
  • Feature
  • Breaking change (기존 기능을 변경하게 하는 bug 또는 feature)

✏️ PR 개요

  • 회원탈퇴 시 soft delete
  • 회원탈퇴한 작성자가 쓴 게시글, 댓글, 쪽지 조회 시 "(알수없음)" 처리 추가
  • 회원탈퇴한 사용자의 프로필 조회 시 404 에러 리턴

-- PR 확인 --
article, comment, util 폴더 제외하고 그 밑으로 봐주면 됨!

resolved: #261

익명 게시판인 경우에만 salt값을 포함한 암호화 진행하도록 수정.
회원탈퇴한 작성자가 쓴 게시글, 댓글, 쪽지 조회 시 "(알수없음)" 처리 추가
회원탈퇴한 사용자의 프로필 조회 시 404 에러 리턴
@Lightieey Lightieey added the enhancement New feature or request label Aug 20, 2023
@Lightieey Lightieey added this to the Final Wingle's Goal milestone Aug 20, 2023
@Lightieey Lightieey requested review from LeeJE20 and gdakate August 20, 2023 17:46
@Lightieey Lightieey self-assigned this Aug 20, 2023
Copy link
Member

@LeeJE20 LeeJE20 left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다!!
추가적으로 커밋 단위가 약간은 큰 것 같아서 다음부터 더미 프로필 만들기 등 함수가 새로 추가되는 경우는 다른 커밋으로 분리해도 좋을 것 같습니다!!

@@ -68,8 +65,8 @@ public MessageResponseWithRecipentDto getListByRoom(Long roomId, int page, int s

return MessageResponseWithRecipentDto.of(
AES256Util.encrypt(recipient.getMemberId().toString()),
profile.getImage(),
recipient.getSchoolName(),
recipient.isDeleted() ? null : profileService.getProfile(recipient.getMemberId()).getImage(),
Copy link
Member

Choose a reason for hiding this comment

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

가급적 반영해 주세요!
클린코드에서 값이 없을때 null을 보내는 것보다는 "", 빈 배열, 빈 리스트 등의 빈 값을 보내는 것을 더 지향합니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

@LeeJE20 반영했습니다!
null 대신 "", 빈 배열, 빈 리스트 등을 사용하는 이유는 NullPointerException이 발생할 가능성이 있기 때문인가요?!

profile.getImage(),
recipient.getSchoolName(),
recipient.isDeleted() ? null : profileService.getProfile(recipient.getMemberId()).getImage(),
recipient.isDeleted() ? "(알수없음)" : recipient.getSchoolName(),
Copy link
Member

Choose a reason for hiding this comment

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

반영해도 좋고 안 해도 좋습니다.
"(알수없음)"을 여러 군데에서 쓰고 있네요. 상수화 해서 사용해도 좋을 것 같습니다.

Copy link
Member Author

@Lightieey Lightieey Aug 21, 2023

Choose a reason for hiding this comment

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

@LeeJE20 상수화하고 싶었는데 어느 위치에 만들어 놓아야 할지 애매해서 일단 literal string으로 썼습니다,,🥲

@Lightieey Lightieey merged commit d444708 into develop Aug 21, 2023
@Lightieey Lightieey deleted the feat/회원탈퇴-#261 branch August 21, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants