-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: 멘토의 멘토링 목록 조회 시 isConfirmed 대신 verifyStatus를 응답하도록 #463
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
refactor: 멘토의 멘토링 목록 조회 시 isConfirmed 대신 verifyStatus를 응답하도록 #463
Conversation
Walkthrough
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java (1)
13-13: 2) DTO 필드 교체: boolean isConfirmed → VerifyStatus verifyStatus — 스키마 변경 확인 필요
1. 변경 목적 부합: 프론트 요구사항 및 이슈(#462)와 정확히 일치합니다.
2. 직렬화 방식 점검: Jackson 설정에 따라 enum이 문자열이 아닌 숫자(ordinal)로 직렬화될 수 있습니다. 프로젝트 전역에서 WRITE_ENUMS_USING_INDEX/TO_STRING 관련 설정을 한 번 확인해 주세요.
3. null 가능성: mentoring.getVerifyStatus()가 null일 수 있다면, API 스펙에 null 허용 여부와 의미를 명확히 해 주세요.
4. 문서 동기화: 연결된 API 문서 PR(#45)와 응답 예시(가능한 enum 값 목록 포함)가 맞게 반영되어 있는지 확인 부탁드립니다.
5. 과도기 호환(선택): 소비자 측 마이그레이션 기간 동안 기존 isConfirmed를 파생 필드로 한시적으로 노출하는 브리징 방안(예: 별도 read-only 속성)을 검토해 볼 수 있습니다. 필요하면 방법을 제안드릴게요.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build
🔇 Additional comments (2)
src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java (2)
3-3: 1) VerifyStatus import 추가 — OK
의도대로 새 필드를 사용하기 위한 import가 정확히 들어갔습니다. 불필요한 의존성도 없습니다.
23-23: 팩토리 메서드 verifyStatus 노출 검증 완료
점검 결과는 다음과 같습니다:
- isConfirmed 잔여 참조 확인
- 코드 전체에isConfirmed키워드가 더 이상 등장하지 않아, 완전 대체가 이루어졌습니다.- null 안전성 보장
-Mentoring도메인의verifyStatus필드는 기본값으로VerifyStatus.PENDING을 설정하므로 null 걱정이 없습니다.- 소비자·테스트 영향 없음
-MentoringForMentorResponse.of호출부는 오직 해당 DTO 파일 내에만 존재하며, 별도 서비스나 테스트 코드 수정을 요구하지 않습니다.- Jackson enum 직렬화 기본 설정 유지
- 글로벌EnumFeature설정이 등록되어 있지 않아, 기본 문자열(name()) 직렬화가 적용됩니다.더 이상의 조치가 필요 없어 변경 사항을 승인합니다.
관련 이슈
작업 내용
https://github.com/solid-connection/api-docs/pull/45
프론트 만옥님의 요청에 따라
멘토가 멘토링 목록을 조회할 때,
isConfirmed대신verifyStatus를 응답하게 합니다.Dto만 수정된 간단한 수정입니다🤗