-
Notifications
You must be signed in to change notification settings - Fork 2
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
The head ref may contain hidden characters: "feat/\uD68C\uC6D0\uD0C8\uD1F4-#261"
Feat/회원탈퇴 #261 #263
Conversation
익명 게시판인 경우에만 salt값을 포함한 암호화 진행하도록 수정.
회원탈퇴한 작성자가 쓴 게시글, 댓글, 쪽지 조회 시 "(알수없음)" 처리 추가 회원탈퇴한 사용자의 프로필 조회 시 404 에러 리턴
There was a problem hiding this 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(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
가급적 반영해 주세요!
클린코드에서 값이 없을때 null을 보내는 것보다는 "", 빈 배열, 빈 리스트 등의 빈 값을 보내는 것을 더 지향합니다!
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영해도 좋고 안 해도 좋습니다.
"(알수없음)"을 여러 군데에서 쓰고 있네요. 상수화 해서 사용해도 좋을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LeeJE20 상수화하고 싶었는데 어느 위치에 만들어 놓아야 할지 애매해서 일단 literal string으로 썼습니다,,🥲
✅ 체크리스트
📋 변경 유형
✏️ PR 개요
-- PR 확인 --
article, comment, util 폴더 제외하고 그 밑으로 봐주면 됨!
resolved: #261