-
Notifications
You must be signed in to change notification settings - Fork 0
[refactor] 알림 리다이렉트를 위한 데이터 구조 수정 #315
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
seongjunnoh
merged 6 commits into
develop
from
refactor/#314-notification-redirect-data-structure
Sep 25, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
47426c4
[refactor] RoomNotificationOrchestrator 메서드 시그니처 수정 (#314)
seongjunnoh a7f7262
[refactor] RoomNotificationOrchestrator 메서드 시그니처 수정에 따른 호출 코드 수정 (#314)
seongjunnoh 6c5a62a
[refactor] RoomNotificationOrchestrator 구현체 코드 수정 (#314)
seongjunnoh c997276
[refactor] RoomNotificationOrchestrator 메서드 시그니처 수정에 따른 테스트 코드 수정 (#314)
seongjunnoh f33f4c0
[refactor] 기록장 조회시 기본 페이징 크기 20으로 수정 (#314)
seongjunnoh a9145c7
[refactor] 불필요한 import 문 삭제 (#314)
seongjunnoh 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
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
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.
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.
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.
기존 알림 레코드 역직렬화가 실패합니다.
현재 DB/캐시에는
ROOM_RECORD_DETAIL,ROOM_VOTE_DETAIL값으로 저장된 알림이 이미 존재합니다. 이 enum 상수를 제거하면Enum.valueOf/JPA 매핑 과정에서IllegalArgumentException이 발생하여 알림 조회 자체가 실패합니다. 배포 전에 데이터 마이그레이션이 보장되지 않는다면, 최소한 레거시 상수를 남겨두고 내부 로직에서ROOM_POST_DETAIL로 매핑하는 완충 장치가 필요합니다.예시 수정안:
레거시 값을 허용하되, 새 알림 생성 시에는
ROOM_POST_DETAIL만 사용하도록 다른 계층에서 제한하는 방식으로 전환해 주세요.🤖 Prompt for AI Agents
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.
아직 알림 부분은 개발 단계여서 기존 데이터를 전부 삭제하는 것으로 정했어!
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.
@seongjunnoh 명확한 설명 감사합니다!
알림 기능이 아직 개발 단계이고 기존 데이터를 모두 삭제할 계획이라면,
ROOM_RECORD_DETAIL과ROOM_VOTE_DETAILenum 상수 제거에 따른 역직렬화 문제는 발생하지 않겠네요. 깔끔한 데이터 구조로 새롭게 시작하는 것이 개발 단계에서는 적절한 접근 방식입니다.이 경우 현재의 리팩토링이 안전하게 진행될 수 있습니다. 🎉
✏ Learnings added
🧠 Learnings used