Skip to content

Conversation

@toychip
Copy link
Member

@toychip toychip commented Apr 25, 2024

Issue number and Link

Summary

FCM과 AOP를 사용하여 요구사항에 맞게 알림기능을 구현하였습니다.

PR Type

  • Feature
  • Bugfix
  • Refactoring
  • Documentation
  • Other

Other Information

  1. 프로필 좋아요 기능 추가 후 알림 기능 추가
  2. 알림 전송 실패시 추가 로직
  3. 실제 알림 전송시 TargetClassName, TargetClassIndex 알림 전송 문구 검토
  4. CartRepository addParticipant() 쿼리로 추가하는 것이 아닌 엔티티로 연관관계 매핑 후 생성하도록 수정

toychip added 30 commits April 6, 2024 02:22
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하여 의미가 없던 것을 배치 사이즈로 해결
toychip added 23 commits April 20, 2024 22:22
알림 전송과 같은 트랜잭션을 분리하여 영향을 주지 않도록 변경
@toychip toychip added ✨ Feature 새로운 기능 추가 임준형 labels Apr 25, 2024
@toychip toychip linked an issue Apr 25, 2024 that may be closed by this pull request
13 tasks
@toychip toychip merged commit 475154f into main Apr 25, 2024
@toychip toychip deleted the Feat/29-Fcm-Aop-Notification branch October 17, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 새로운 기능 추가 임준형

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: FCM + AOP를 활용한 알림기능

2 participants