Skip to content

[Notification] 활성 대화창의 알림 전송 버그 수정#128

Merged
jeonggiju merged 2 commits intodevfrom
bug/notification#125
Jan 29, 2026
Merged

[Notification] 활성 대화창의 알림 전송 버그 수정#128
jeonggiju merged 2 commits intodevfrom
bug/notification#125

Conversation

@loi2016
Copy link
Copy Markdown
Contributor

@loi2016 loi2016 commented Jan 28, 2026

PR 요약

대화 활성 여부가 항상 false 처리되고 대화 중에도 SSE 알림이 전송되어 이를 수정

체크리스트

상세 설명

  • WebSocket principal을 DirectMessageEventListener.extraUserId()에서 MoplUserDetails로만 처리하여 userId가 null로만 들어옴
  • isSubscribed()가 항상 false가 되어 이벤트 생성 및 알림 전송이 되어 미확인 알림 카운트 증가/DB 알림 삭제가 이뤄지고, 알림 배지 클릭 시 정합성이 맞춰지면서 다시 카운트가 감소하는 현상이 존재
  • UUID, String 등도 처리할 수 있도록 메서드에 경우의 수 추가

변경된 파일

ReviewService

  • 리뷰 알림이 과하게 길어지는 것을 대비해 20자까지만 출력하도록 변경

DirectMessageSubscriptionRegistry

  • 코드 상 수정 없음

DirectMessageEventListener

  • 컨트롤러 및 인증 사양에 맞게 principal 처리 경우의 수 추가

추가된 파일

DirectMessageReadService

  • 리스너에서 호출하여 알림 삭제를 진행하는 서비스

제거된 파일

  • NULL

검증 단계

추가 코멘트

  • (추후 수정이 필요한 문제, 원인 추정) DM 컨트롤러에서 초기 방식으로 Authentication을 처리하고 이것이 Jwt 인터셉터와 연결되어 원인을 해결하려면 많은 작업 필요할 것으로 예상

@loi2016 loi2016 self-assigned this Jan 28, 2026
@loi2016 loi2016 added this to mopl-sb5 Jan 28, 2026
@loi2016 loi2016 added the bug Something isn't working label Jan 28, 2026
@github-project-automation github-project-automation bot moved this to Todo in mopl-sb5 Jan 28, 2026
@loi2016 loi2016 linked an issue Jan 28, 2026 that may be closed by this pull request
2 tasks
@loi2016 loi2016 moved this from Todo to In Progress in mopl-sb5 Jan 28, 2026
@loi2016 loi2016 requested a review from jymin0 January 28, 2026 09:37
@loi2016 loi2016 force-pushed the bug/notification#125 branch from 86c58b4 to 7453aae Compare January 28, 2026 10:01
@jeonggiju jeonggiju merged commit 04275ae into dev Jan 29, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in mopl-sb5 Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Notification] 활성 대화창의 알림 전송 버그 수정

2 participants