release: develop → main#250
Merged
Merged
Conversation
- 메시지 답글 지원 (parentMessageId + replyTo 정보)
- 메시지 반응(THUMBS_UP / THUMBS_DOWN) 추가/취소/카운트
- ChatMessageReaction 도메인 + ReactionCount / MyReaction 프로젝션
- 채팅방 진입 시 myVoteOption 배지 정보 제공 (ChatRoomResponse)
- SendMessageRequest에 replyToMessageId 추가
- GET /messages 응답에 replyTo, reactions, myReaction 포함
- PUT /messages/{messageId}/reactions 반응 API 신규
- V17 마이그레이션 (parent_message_id + chat_message_reaction 테이블)
- WS 브로드캐스트에 replyTo 정보 포함
명세: docs/spec/chat-reactions-replies-badge-api-improvement.md
- contentPreview는 전체 내용을 그대로 내림 (프론트에서 말줄임 처리) - ReplyInfo, buildReplyInfo, loadParentInfos, buildReplyInfoForBroadcast 업데이트 - 스펙 문서도 반영
- Add senderId to MessageResult and MessageResponse - Update constructions in service and event listener - Update tests accordingly
… V16, align with spec
ReplyInfoResolver로 답글 원문 사용자 조회를 통합하고, 메시지 목록 enrichment에 batch 사용자 조회를 적용한다. 반응 변경 시 REACTION_UPDATED WebSocket 브로드캐스트를 추가하고, 메시지 없음/불일치는 404로 분리한다.
sender_id와 parent_message_id를 User·ChatMessage @manytoone으로 선언하고 JOIN FETCH 조회로 연관 엔티티를 바로 사용하도록 서비스·리스너·테스트를 정리한다.
sid, nick, col, msg, myReact를 senderId, senderNickname, senderProfileIcon, message, myReaction으로 변경한다.
원문 메시지가 없을 때 닉네임 상수 중복을 제거하고, contentPreview용 삭제 메시지 문구만 채팅 도메인에 유지한다.
parent chat_message row가 없으면 replyTo를 null로 반환한다. ON DELETE SET NULL과 동일한 동작이며, synthetic 삭제 메시지 응답을 제거한다.
Testcontainers PostgreSQL 위에서 채팅방 조회, 메시지 전송/조회, 반응 추가·변경·취소 및 에러 케이스를 검증한다.
WebMvcTest에서 Long principal 인증을 사용하고, ChatServiceTest mockUser 스텁 충돌 및 assertion을 정리한다.
feat(chat): 메시지 반응(👍👎), 답글(reply), 본인 선택지 배지 기능 추가
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
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.
Release: develop → main
develop 브랜치의 변경사항을 main으로 배포합니다.
버전은 main 머지 시점에 자동으로 확정됩니다.
Changes