Skip to content
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

[feat] : 채팅방 메시지 조회 API 개선 및 응답값 추가 #111

Merged
merged 12 commits into from
Mar 19, 2024

Conversation

hyun2371
Copy link
Member

@hyun2371 hyun2371 commented Mar 18, 2024

📑 작업 상세 내용

  • fetch join 메서드 두개로 분리
  • 채팅방 메시지 통합 테스트 setup 리팩토링
  • chat message test 채팅방 생성 시 비즈니스 로직 반영
  • 통합테스트 chatRoomMessage 파라미터 biddingId -> chatroomId
  • 채팅방 및 채팅 메시지 응답 수정
    • 경매 이미지 채팅방 상세 조회에 추가
    • 채팅메시지 조회 최신순으로

💫 작업 요약

  • fetch join 메서드 두개로 분리
  • 채팅방 메시지 통합 테스트 setup 리팩토링, 비즈니스 로직 반영
  • 채팅방, 채팅 메시지 응답값 수정

🔍 중점적으로 리뷰 할 부분

@hyun2371 hyun2371 requested a review from ParkJuhan94 March 18, 2024 04:18
@hyun2371 hyun2371 linked an issue Mar 18, 2024 that may be closed by this pull request
1 task
@hyun2371 hyun2371 added the refactor 리팩토링 label Mar 18, 2024
@hyun2371 hyun2371 self-assigned this Mar 18, 2024
Copy link

github-actions bot commented Mar 18, 2024

Test Results

122 tests  ±0   122 ✅ ±0   28s ⏱️ +2s
 31 suites ±0     0 💤 ±0 
 31 files   ±0     0 ❌ ±0 

Results for commit f070754. ± Comparison against base commit cbcb5d4.

♻️ This comment has been updated with latest results.

ChatRoom chatRoom = getChatRoomById(chatRoomId);
Slice<ChatMessageResponse> responsePage = chatMessageRepository
.findByChatRoomOrderByCreatedAt(chatRoom, pageable)
.findByChatRoom(chatRoom, pageable)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OrderBy 빼신 이유가 궁금합니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

결과가 같아서명시해주지 않으면 오래된순으로 정렬이라고 생각했습니다! 이 부분은 저도 헷갈리네요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

디폴트가 OrderByCreatedAt 인가 보군요!
디폴트 정렬이 헷갈리니까 정렬 기준을 명시해주는 것도 좋은 것 같습니다

@hyun2371 hyun2371 changed the title [refactor] : 채팅방 메시지 조회 API 개선 [feat] : 채팅방 메시지 조회 API 개선 Mar 19, 2024
@hyun2371 hyun2371 changed the title [feat] : 채팅방 메시지 조회 API 개선 [feat] : 채팅방 메시지 조회 API 개선 및 응답값 추가 Mar 19, 2024
@hyun2371 hyun2371 added the feat New feature or request label Mar 19, 2024
@hyun2371 hyun2371 merged commit 6f8086e into dev Mar 19, 2024
3 checks passed
@hyun2371 hyun2371 deleted the feat/#110/chat-message-improve branch March 19, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request refactor 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] : 채팅방 메시지 조회 API 개선 및 응답값 추가
2 participants