-
Notifications
You must be signed in to change notification settings - Fork 1
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
#447 [feat] 글 상세 뷰 에러 코드 세분화 #449
Conversation
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.
작업 내용이 많았네요.. 고생 많으셨습니다!!
MOIM_OWNER_AUTHENTICATION_ERROR(HttpStatus.FORBIDDEN.value(), "사용자는 해당 모임의 모임장이 아닙니다."), | ||
WRITER_NAME_INFO_FORBIDDEN(HttpStatus.FORBIDDEN.value(), "해당 사용자는 필명에 접근 권한이 없습니다."), | ||
COMMENT_ACCESS_ERROR(HttpStatus.FORBIDDEN.value(), "해당 사용자는 댓글에 접근 권한이 없습니다."), | ||
COMMENT_ACCESS_ERROR(40306, "해당 사용자는 댓글에 접근 권한이 없습니다."), |
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.
P5) 사소하지만.. 40305 인것 같숩니다!
writerNameRetriever.findWriterNameByMoimIdAndUserId(moimId, userId)); | ||
Long moimId = post.getTopic().getMoim().getId(); | ||
WriterName writerName = writerNameRetriever.findByMoimAndUser(moimId, userId); | ||
if(!postRetriever.isWriterOfPost(post, writerName) && !moimRetriever.isMoimOwnerEqualsUser(post.getTopic().getMoim(), userId)){ |
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.
P5) and 가 아니라 or 이 들어가야 하는 조건문 아닌가요?!
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.
모임장을 체크하는 조건, 글쓴이를 체크하는 조건 이 두 조건이 모두 false이면 예외인 점이어서 ! 연산자를 통해 예외를 던지게 했습니다! 제가 잘못 작성한 것 일까요!
✒️ 관련 이슈번호
Key Changes 🔑
(중요도 상)
(중요도 하)
4. 이전에 반영되어 있지 않던, 댓글 대댓글 길이 관련한 DB 제약사항 변경했습니다.
5. WriterName테이블의 Constraints와 이름 명명이 카멜케이스가 아닌 다른 방법으로 적용되어 있어서 수정했습니다.
To Reviewers 📢