Skip to content

Conversation

@nayonsoso
Copy link
Collaborator

관련 이슈

작업 내용

https://github.com/solid-connection/api-docs/pull/45

프론트 만옥님의 요청에 따라
멘토가 멘토링 목록을 조회할 때, isConfirmed 대신 verifyStatus를 응답하게 합니다.

Dto만 수정된 간단한 수정입니다🤗

@coderabbitai
Copy link

coderabbitai bot commented Aug 17, 2025

Walkthrough

  1. MentoringForMentorResponse 레코드의 필드가 boolean isConfirmed에서 VerifyStatus verifyStatus로 변경되었습니다.
  2. of(...) 팩토리 메서드는 confirmedAt에서 파생된 불리언 대신 mentoring.getVerifyStatus()를 반환하도록 수정되었습니다.
  3. VerifyStatus를 사용하기 위한 import 구문이 추가되었습니다.
  4. 그 외 공개 API의 다른 시그니처 변경은 없습니다.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • wibaek
  • lsy1307
  • Gyuhyeok99
  • whqtker

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 Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a 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.

📥 Commits

Reviewing files that changed from the base of the PR and between afe27ab and 018ea8d.

📒 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 노출 검증 완료
점검 결과는 다음과 같습니다:

  1. isConfirmed 잔여 참조 확인
     - 코드 전체에 isConfirmed 키워드가 더 이상 등장하지 않아, 완전 대체가 이루어졌습니다.
  2. null 안전성 보장
     - Mentoring 도메인의 verifyStatus 필드는 기본값으로 VerifyStatus.PENDING을 설정하므로 null 걱정이 없습니다.
  3. 소비자·테스트 영향 없음
     - MentoringForMentorResponse.of 호출부는 오직 해당 DTO 파일 내에만 존재하며, 별도 서비스나 테스트 코드 수정을 요구하지 않습니다.
  4. Jackson enum 직렬화 기본 설정 유지
     - 글로벌 EnumFeature 설정이 등록되어 있지 않아, 기본 문자열(name()) 직렬화가 적용됩니다.

더 이상의 조치가 필요 없어 변경 사항을 승인합니다.

@nayonsoso nayonsoso changed the title refactor: isConfirmed 대신 verifyStatus를 응답하도록 refactor: 멘토의 멘토링 목록 조회 시 isConfirmed 대신 verifyStatus를 응답하도록 Aug 17, 2025
@nayonsoso nayonsoso merged commit 35e979a into solid-connection:develop Aug 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: 멘토링 목록 조회 시, 'isConfirmed'가 아니라 'verifyStatus'를 응답하도록

3 participants