-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: 멘토 및 채팅 관련 API 응답 수정 #537
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
whqtker
merged 8 commits into
solid-connection:develop
from
whqtker:refactor/536-modify-mentoring-chat-response
Nov 13, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
51158ff
refactor: 멘토의 멘토링 조회 응답에서 mentoringId가 아니라 roomId를 포함하도록
whqtker e366144
refactor: 파트너가 멘토인 경우 partnerId는 mentorId로
whqtker 92655d6
refactor: 응답의 senderId가 mentorId/siteUserId가 되도록
whqtker 438f180
refactor: senderId에 해당하는 chatParticipant가 없을 경우 예외 처리하는 로직 추가
whqtker fedc72b
refactor: 메서드명에 맞게 시그니처 변경
whqtker 610814b
refactor: getChatMessages 메서드에서 응답으로 siteUserId를 넘겨주도록
whqtker cf706fb
refactor: 헬퍼 메서드로 메서드 복잡성을 분산한다
whqtker 08d2ff7
refactor: getChatPartner 메서드의 응답으로 siteUserId를 넘겨주도록
whqtker 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
2 changes: 1 addition & 1 deletion
2
src/main/java/com/example/solidconnection/chat/dto/ChatParticipantResponse.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
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.
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.
🧩 Analysis chain
사용되지 않는
MentorRepository의존성이 주입되었습니다.MentorRepository가 추가되었지만 코드 어디에서도 실제로 사용되지 않고 있습니다. PR 목표에서는senderId가 멘토의 경우mentorId, 멘티의 경우siteUserId를 반환해야 한다고 명시되어 있는데, 현재 구현에서는 모든 경우에siteUserId만 사용하고 있습니다(Line 151 참조).다음 중 하나를 확인해 주세요:
siteUserId를 사용하는 것이 맞다면, 사용하지 않는MentorRepository의존성을 제거해야 합니다.mentorId를 반환해야 한다면,buildChatMessageResponses메서드에서mentorRepository를 활용하여siteUserId를mentorId로 매핑하는 로직을 추가해야 합니다.다음 스크립트를 실행하여
MentorRepository가 다른 곳에서 사용되는지 확인해 보세요:Also applies to: 51-51, 60-60, 67-67
🏁 Script executed:
Length of output: 0
검증을 계속 진행하겠습니다. 현재 ChatService의 구현 내용을 확인하여 멘토레포지토리가 정말 사용되지 않는지, 그리고 요구사항이 실제로 변경되었는지 확인하겠습니다.
🏁 Script executed:
Length of output: 230
🏁 Script executed:
Length of output: 230
구문 오류를 수정하겠습니다. ChatService.java 파일을 올바르게 조회하겠습니다.
Length of output: 13813
사용되지 않는
MentorRepository의존성을 제거하거나 실제로 구현해야 합니다.전체 코드를 검토한 결과,
MentorRepository는 주입(Line 27, 51, 60, 67)만 되어 있고 어디에서도 실제로 사용되지 않고 있습니다.buildChatMessageResponses메서드(Line 141-157)에서도senderParticipant.getSiteUserId()만 사용하고 있습니다.다음 중 하나를 선택해 주세요:
요구사항이 변경되어 모든 경우
siteUserId를 사용하기로 결정되었다면—
MentorRepositoryimport, 필드 선언, 생성자 파라미터 및 할당을 모두 제거하세요.멘토의 경우
mentorId를 반환해야 한다면—
buildChatMessageResponses메서드에서senderParticipant또는 역할 정보를 확인하여mentorRepository를 활용해siteUserId를mentorId로 매핑하는 로직을 추가하세요.🤖 Prompt for AI Agents