-
Notifications
You must be signed in to change notification settings - Fork 8
feat: 멘토 승격 신청 이후 멘토 프로필 작성 기능 추가 #553
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
Closed
sukangpunch
wants to merge
10
commits into
solid-connection:develop
from
sukangpunch:feat/532-create-mentor-profile-after-request-mentor-application
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8d910b4
feat: 멘토 마이페이지 생성 기능 추가 - 1차
sukangpunch b3c34da
feat: 멘토 승격 요청 이후 TEMP_ROLE 부여
sukangpunch 9221ecd
fix: MentorQueryService에서 멘토 조회 시 임시 멘토 제외
sukangpunch 50e6dad
refactor: submitMentorApplication 메서드 로직을 의도에 맞게 분리
sukangpunch 84c07eb
test: MentorApplicationTest에서 멘토 승격 요청 시 ROLE 이 TEMP_MENTOR 로 변경됨을 확인
sukangpunch e8f0c2d
test: MentorMyPageServiceTest, MentorQueryServiceTest 변경사항 적용
sukangpunch f53454e
refactor: getMentorDetails 에서 임시 멘토 필터링을 JPA 메서드로 대체
sukangpunch 730956a
feat: flyway 스크립트 작성
sukangpunch 06434d0
style: code 컨벤션 적용
sukangpunch 6ee3bbd
fix: 코드래빗 리뷰사항 적용
sukangpunch 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
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
8 changes: 8 additions & 0 deletions
8
src/main/java/com/example/solidconnection/mentor/domain/MentorStatus.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package com.example.solidconnection.mentor.domain; | ||
|
|
||
| public enum MentorStatus { | ||
|
|
||
| TEMPORARY, | ||
| APPROVED, | ||
| ; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,5 +3,6 @@ | |
| public enum UniversitySelectType { | ||
|
|
||
| CATALOG, | ||
| OTHER | ||
| OTHER, | ||
| ; | ||
| } | ||
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/example/solidconnection/mentor/dto/MentorMyPageCreateRequest.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package com.example.solidconnection.mentor.dto; | ||
|
|
||
| import jakarta.validation.Valid; | ||
| import jakarta.validation.constraints.NotBlank; | ||
| import java.util.List; | ||
|
|
||
| public record MentorMyPageCreateRequest( | ||
| @NotBlank(message = "자기소개를 입력해주세요.") | ||
| String introduction, | ||
|
|
||
| @NotBlank(message = "합격 레시피를 입력해주세요.") | ||
| String passTip, | ||
|
|
||
| @Valid | ||
| List<ChannelRequest> channels | ||
| ) { | ||
|
|
||
| } |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
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
Term의 유효성 검증을 확인해 주세요.
현재 Term을 이름으로만 조회하고 있습니다. Term이 현재 활성화 상태인지, 신청 가능한 기간인지 등의 추가 검증이 필요한지 확인이 필요합니다.
다음 스크립트로 Term 도메인의 상태 관리 로직을 확인해 주세요:
🏁 Script executed:
Length of output: 0
더 체계적으로 검증하겠습니다. 새로운 스크립트로 Term 엔티티와 검증 로직을 찾아보겠습니다.
</run_scripts]
🏁 Script executed:
Length of output: 4769
현재 Term의 활성화 상태 검증을 추가해주세요.
검증 결과, Term 엔티티는
isCurrent필드를 통해 활성화 상태를 관리하도록 설계되어 있으나, MentorApplicationService에서는 Term 이름으로만 조회하고 있습니다. 이는 비활성 또는 지난 학기의 Term으로 멘토 신청이 가능하게 하므로 문제입니다.필요한 변경 사항:
termRepository.findByName()조회 후term.isCurrent()상태를 확인하거나, TermRepository에findCurrentByName()같은 전용 메서드를 추가해주세요.현재 활성화되지 않은 Term으로 신청하는 경우 적절한 예외(예:
TERM_NOT_ACTIVE또는 유사한 에러코드)를 던져주세요.이렇게 하면 애플리케이션이 올바른 시기의 Term으로만 멘토 신청을 받을 수 있습니다.
🤖 Prompt for AI Agents
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.
이건 멘토 지원하는 유저의 멘토 자격을 확인하기 위함이라 최신 학기가 강제되어야 하는 부분이 아니야
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.
@sukangpunch, 이해했습니다! 말씀하신 대로 이 필드는 유저가 교환학생을 다녀온 학기를 기록하기 위한 것이므로, 반드시 현재 활성 학기여야 할 필요가 없네요. 과거 학기 정보로도 멘토 자격 검증이 가능하니 현재 구현이 적절합니다.
설명해 주셔서 감사합니다! 👍