-
Notifications
You must be signed in to change notification settings - Fork 0
[♻️ refactor] PushToken 네이밍 변경 #37
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
Conversation
BaseException과 Exception 처리만으로 충분하므로, UnsupportedOperationException, HttpMediaTypeNotSupportedException, SocketTimeoutException에 대한 별도 핸들러를 제거함.
- INVALID_USER_NAME 메시지에 공백 허용 여부를 명확히 표현
- 클래스명 PushToken → FcmToken 으로 명확히 표현 - 생성자, 팩토리 메서드 등 관련 메서드명 일괄 수정 - 예외 코드도 FCM_TOKEN_NOT_NULL 로 변경
- @Embedded 필드 타입을 PushToken → FcmToken으로 수정 - 클래스명 변경에 따른 필드 타입 일관성 유지
- FcmToken 클래스명 변경에 따라 테스트 클래스 및 내부 테스트 대상 수정 - 예외 메시지 검증 시 FCM_TOKEN_NOT_NULL 에 맞춰 assert 문 수정
- PUSH_TOKEN_NOT_NULL → FCM_TOKEN_NOT_NULL 로 수정하여 도메인 명확성 확보
- @DisplayName 어노테이션을 "푸시 토큰 테스트" → "FCM 토큰 테스트"로 변경
junggyo1020
left a comment
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.
근데 이전 PR들과 변경사항이 누적되서 나오는 것 같네요!! 피처브랜치에서 develop으로 개별적으로 PR이 올라와서 그런 것 같네요!! 형상관리에 대해 조금 더 같이 이야기를 나눠보면 좋을 것 같아요!
| INVALID_USER_NAME(HttpStatus.BAD_REQUEST, "이름은 한글, 영어, 숫자, 공백으로만 구성할 수 있습니다."), | ||
|
|
||
| PUSH_TOKEN_NOT_NULL(HttpStatus.BAD_REQUEST, "푸시 토큰은 null일 수 없습니다."), | ||
| FCM_TOKEN_NOT_NULL(HttpStatus.BAD_REQUEST, "FCM 토큰은 null일 수 없습니다."), |
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.
네! 이번에 네이밍을 정리하면서 에러 메시지도 함께 수정해보았습니다 :) 더 명확하게 전달될 수 있어서 다행이에요.
감사합니다!
좋습니다~! 최대한 충돌 없이 관리하고 싶은데 쉽지 않네요 😅 |
📄 Work Description
PushToken클래스명을FcmToken으로 변경User.token) 및 팩토리 메서드, 생성자 명칭 일괄 변경PUSH_TOKEN_NOT_NULL→FCM_TOKEN_NOT_NULL로 명확히 분리💬 To Reviewers
📷 Screenshot
⚙️ ISSUE
✅ PR check list