-
Notifications
You must be signed in to change notification settings - Fork 2
fix: 알림 중복발송 오류 #2165
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
fix: 알림 중복발송 오류 #2165
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b082f37
fix: 게시글 단위 키워드 알림 중복 발송 방지
taejinn 0dfe03f
test: 키워드 알림 중복 방지 테스트 추가
taejinn 9396384
fix: 알림 상태 저장을 원자적 업서트로 변경
taejinn 89619ba
fix: 키워드 이벤트 흐름의 지연 로딩 의존 제거
taejinn 2b84fc0
fix: 키워드 구독 조회시 사용자 fetch join 적용
taejinn e3e6cd4
fix: 업서트 쿼리에서 deprecated VALUES 함수 제거
taejinn 0e89d89
fix: 기발송 사용자 조회를 일괄 쿼리로 최적화
taejinn 655f652
fix: 키워드 알림 상태를 전송 성공 후 기록하도록 변경
taejinn a6ba4f6
fix: FCM 전송 결과 메서드의 예외 처리 범위 확장
taejinn 472e177
test: 키워드 알림 전송 실패시 상태 미기록 테스트 추가
taejinn 2e0dd02
fix: 알림 전송 메서드의 트랜잭션 경계 분리
taejinn a9a4473
fix: 기발송 조회 대상을 매칭 사용자로 한정
taejinn b5137f5
fix: 전송 성공 시에만 알림 레코드 저장
taejinn 22195a2
fix: guard against blank FCM device tokens in sendMessageWithResult (…
Copilot 47b8591
fix: 알림 전송 메서드가 호출자 트랜잭션에 참여하도록 수정
taejinn edd971c
Merge branch 'fix/2164-notification-duplication' of https://github.co…
taejinn e28c9ec
fix: 배치 알림 전송 예외를 개별 처리하도록 수정
taejinn 8656f63
fix: 키워드 알림 조회와 푸시 전송 흐름을 개선
taejinn 803b48b
fix: 전송 결과 알림은 성공 시에만 저장하도록 수정
taejinn 766a3e7
Merge branch 'develop' into fix/2164-notification-duplication
taejinn d359bd8
fix: 발송 후 알림 저장을 별도 트랜잭션으로 분리
taejinn 9636f72
Merge branch 'develop' into fix/2164-notification-duplication
taejinn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
src/main/java/in/koreatech/koin/common/event/ArticleKeywordEvent.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,16 @@ | ||
| package in.koreatech.koin.common.event; | ||
|
|
||
| import in.koreatech.koin.domain.community.keyword.model.ArticleKeyword; | ||
| import java.util.Collections; | ||
| import java.util.LinkedHashMap; | ||
| import java.util.Map; | ||
|
|
||
| public record ArticleKeywordEvent( | ||
| Integer articleId, | ||
| Integer authorId, | ||
| ArticleKeyword keyword | ||
| Map<Integer, String> matchedKeywordByUserId | ||
| ) { | ||
|
|
||
| public ArticleKeywordEvent { | ||
| matchedKeywordByUserId = Collections.unmodifiableMap(new LinkedHashMap<>(matchedKeywordByUserId)); | ||
| } | ||
| } |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.