-
Notifications
You must be signed in to change notification settings - Fork 4
CLAP-119 작업 승인 처리 #106
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
CLAP-119 작업 승인 처리 #106
Conversation
|
ApplicationListener의 경우는 작업 승인, 담당자 변경 등의 메소드만 만들어놔주시면 제가 별도로 설정할 예정입니다!! 상관안쓰셔두 돼요! |
joowojr
left a comment
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.
taskid는 dto 선언이 아닌 path variable로 변경 부탁드립니다!
| @NotNull | ||
| Long mainCategoryId, | ||
| @NotNull | ||
| Long categoryId, |
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.
카테고리 id(2차)만 받아도 충분할 거 같은데 어떻게 생각하시나요?
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.
string이 아니라 데이터 객체로 선언하신 이유가 있을까요?
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.
정렬하는 속성과 그 속성을 오름차순 혹은 내림차순 정렬을 할지에 대한 방향은 항상 함께 전달되기 때문에 객체로 묶었습니다.
| @Transactional | ||
| public UpdateTaskResponse updateTask(Long requesterId, UpdateTaskRequest updateTaskRequest) { | ||
| memberService.findActiveMember(requesterId); | ||
| Category category = categoryService.findById(updateTaskRequest.categoryId()); |
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.
승인 권한이 있는 담당자만 가능하도록 해야해서, SPEL을 사용하여 메서드 단위로 승인을 하거나 MEMBER의 리뷰어 권한을 조회해서 예외 처리 추가하시면 될거같아요!
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.
제가 이해한게 맞다면 말씀하신 부분은 approvalTaskByReviewer()메서드에 추가되어있는데 확인한번 부탁드립니다.
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.
수정시에도 요청자나 담당자와 일치하는지 검증하는거 필요할거같아요!
66b96dd to
582ca7d
Compare
📄 요약(Summary)
✍🏼 상세(More)
PR Desciption
Requirements for Reviewer
PR Log
새롭게 배운 것
고민 중인 사항
첨부 자료
Requirements for Reviewer
✅ 체크리스트(Checklist)
🚪 이슈 번호(Issue numbers)
Closes #85