-
Notifications
You must be signed in to change notification settings - Fork 1
Pr Feat/29 fcm aop notification #129
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notification에서 notification.aop로 변경
fcm token을 활용하여 검증 후 FCMManager에게 알림을 전달하는 서비스
알림을 보낼 대상, 클래스명, 메서드명을 전달하는 어드바이저로 수정
FCMNotificationService에서 알림 카테고리 판단과 저장의 역할을 NotificationService로 이동
…ame (#126) FCMNotificationService -> NotificationDispatcher (알림 발송 역할), FCMManager -> FCMService (FCM Api 호출 역할), NotificationService -> NotificationRegistry (알림 저장, 판단 역할)
LikeService, ScrapService annotation, NotificationRegistry.determineNoticategory() 판단 추가
댓글은 반환 값을 사용하여 해결할 수 없고 클래스명과 메서드명으로 확인할 수 없으므로 별도의 댓글 알림 Adivsor 추가
모든 댓글 중 알림 기능에 해당하는 댓글에만 알림 발송
댓글을 삭제하면 상태 값에 삭제로 두고 내용을 바꾸기 때문에 삭제된 것을 필터링하는 것 제거
댓글은 삭제된 댓글입니다로 나와야하므로 삭제된 것을 안보여주면 안됨
컬렉션이 2개 즉, xxxToMany가 2개일 때 하나만 fetch join하여 의미가 없던 것을 배치 사이즈로 해결
알림 전송과 같은 트랜잭션을 분리하여 영향을 주지 않도록 변경
본인 게시글에 본인이 댓글 달면 전송 x
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number and Link
Summary
FCM과 AOP를 사용하여 요구사항에 맞게 알림기능을 구현하였습니다.
PR Type
Other Information