-
Notifications
You must be signed in to change notification settings - Fork 3
[refactor] be 리팩토링 #673
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
Merged
[refactor] be 리팩토링 #673
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
13 changes: 2 additions & 11 deletions
13
backend/src/main/java/moadong/club/enums/ApplicationStatus.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 |
|---|---|---|
| @@ -1,17 +1,8 @@ | ||
| package moadong.club.enums; | ||
|
|
||
| public enum ApplicationStatus { | ||
| DRAFT, // 작성 중 | ||
| SUBMITTED, // 제출 완료 | ||
| SCREENING, // 서류 심사 중 | ||
| SCREENING_PASSED, // 서류 통과 | ||
| SCREENING_FAILED, // 서류 탈락 | ||
| INTERVIEW_SCHEDULED, // 면접 일정 확정 | ||
| INTERVIEW_IN_PROGRESS, // 면접 진행 중 | ||
| INTERVIEW_PASSED, // 면접 통과 | ||
| INTERVIEW_FAILED, // 면접 탈락 | ||
| OFFERED, // 최종 합격 제안 | ||
| ACCEPTED, // 제안 수락 | ||
| DECLINED, // 제안 거절 | ||
| CANCELED_BY_APPLICANT // 지원자 자진 철회 | ||
| ACCEPTED, // 합격 | ||
| DECLINED, // 불합 | ||
| } | ||
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.
💡 Verification agent
🧩 Analysis chain
중요: enum 값 대폭 제거로 인한 데이터/호환성 리스크 점검 필요
이 PR에서 여러 상태값을 제거했습니다. 만약 DB에 ApplicationStatus가 저장되고 있고(특히 EnumType.ORDINAL 사용 시) 이미 저장된 레코드가 제거된 값들을 포함한다면,
또한 외부/프론트엔드에서 제거된 상태 문자열로 요청 시 역직렬화 400이 발생할 수 있습니다. 배포 전 마이그레이션/하위호환 전략이 필요합니다.
[offer_assistance]
권장 조치:
다음 스크립트로 영향도를 빠르게 점검할 수 있습니다:
원하시면 AttributeConverter 템플릿(레거시 → 신규 매핑) 초안도 제공하겠습니다.
🏁 Script executed:
Length of output: 2388
중요: ApplicationStatus enum 값 제거에 따른 데이터/호환성 점검 및 대응 필요
현재 확인 결과,
ClubApplication.status필드는@Enumerated(EnumType.STRING)으로 매핑 중이며,EnumType.ORDINAL은 사용되지 않습니다.점검 대상:
@Enumerated(EnumType.STRING)적용 확인 (라인 29–31)@Query("{ … 'status': { $exists: true, $ne: 'DRAFT' } }")에서 제거된 값 ‘DRAFT’ 참조 (라인 11)SCREENING,SCREENING_PASSED,SCREENING_FAILED,INTERVIEW_IN_PROGRESS,INTERVIEW_PASSED,INTERVIEW_FAILED,OFFERED,CANCELED_BY_APPLICANT등 다른 제거된 enum 값에 대한 사용처가 남아있는지 전역 검색이 필요합니다.권장 조치 (필수):
• 기존에 저장된 제거된 문자열을 신규 상태값으로 일괄 업데이트
•
AttributeConverter<String, ApplicationStatus>구현(읽기 시 예외 방지)• 또는 제거된 enum 값을 일시
@Deprecated상태로 복원하고, 신규 매핑로직 적용 후 완전 제거위 조치를 통해 배포 전 데이터 무결성과 호환성을 확보하세요.
🤖 Prompt for AI Agents