-
Notifications
You must be signed in to change notification settings - Fork 0
J01 95 be 댓글 생성 로직에 누락된 기능 추가 #24
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
The head ref may contain hidden characters: "J01-95-BE-\uB313\uAE00-\uC0DD\uC131-\uB85C\uC9C1\uC5D0-\uB204\uB77D\uB41C-\uAE30\uB2A5-\uCD94\uAC00"
Conversation
- 컴포넌트 댓글 수를 증가/감소 이벤트를 구독하는 리스너 추가
- 댓글 이미지 경로 이동 이벤트를 구독하는 리스너 추가
- 이미지가 없는 경우 메서드를 종료하도록 수정
- StorageService 대신 CommentImageEventListener 를 사용하도록 변경
SSUHYUNKIM
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.
수고하셨습니다!
| private final ComponentRepository componentRepository; | ||
|
|
||
| @Async | ||
| @Transactional(propagation = Propagation.REQUIRES_NEW) |
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.
궁금증) Progation.REQUIRES_NEW에 대해서 찾아봤는데 댓글 저장은 롤백되더라도, 댓글 수 증가 이벤트는 정상적으로 반영됨! 이라고 나와서 저장이 롤백되면 댓글 증가 이벤트도 반영이 안되어야하는게 아닌가요?
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.
어우 그 부분을 고려 못했네요.. 감사합니다!
작업 내용
componentId검증 로직 추가componentId와parentId간 관계 검증 로직 추가ComponentCommentCountIncreaseEvent)ComponentCommentCountEventListener)StorageService사용CommentImageEventListener)ComponentCommentCountDecreaseEvent)ComponentCommentCountEventListener)StorageService사용CommentImageEventListener)Listener로 변경테스트
Repository
Service
Controller
기타 사항 (참고 자료, 문의 사항 등)