-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix/#225 오픈 프로필 url 없으면 exception 발생하도록 수정 #233
The head ref may contain hidden characters: "Fix/#225-\uC624\uD508_\uD504\uB85C\uD544_URL_\uC5C6\uC73C\uBA74_Exception_\uBC1C\uC0DD\uD558\uB3C4\uB85D_\uC218\uC815"
Fix/#225 오픈 프로필 url 없으면 exception 발생하도록 수정 #233
Conversation
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.
크게 수정할 점은 보이지 않네요.
수고하셨습니다.
@@ -29,6 +30,7 @@ public class Member extends BaseEntity { | |||
@Column(nullable = false) | |||
private String description; | |||
@Column | |||
@Getter(value = AccessLevel.PRIVATE) |
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.
혹시 AccessLevel을 PRIVATE으로 설정하고 밑에 구현하신 이유가 있으신가요?
밑에 직접 getter를 구현하면 자동으로 override가 되지 않나요?
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.
수고하셨습니다! 크게 수정할 점은 보이지 않네요!
approve하겠습니다~
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.
크게 바뀔부분은 없네요. 수고하셨습니다!
@@ -108,7 +113,7 @@ private String getAccessToken() { | |||
try { | |||
final GoogleCredentials googleCredentials = GoogleCredentials | |||
.fromStream(new ClassPathResource(firebaseConfigPath).getInputStream()) | |||
.createScoped(List.of("https://www.googleapis.com/auth/cloud-platform")); | |||
.createScoped(List.of(GOOGLE_AUTH_URL)); | |||
|
|||
googleCredentials.refreshIfExpired(); |
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.
ControllerAdvice가 로그를 남기고 있으니까, log.error를 굳이 찍을 필요가 없지 않나요?
@@ -84,15 +86,18 @@ private String makeMessage(final String targetToken, final Notification notifica | |||
final Member sender = memberRepository.findById(senderId) | |||
.orElseThrow(() -> new MemberException(MemberExceptionType.NOT_FOUND_MEMBER)); | |||
|
|||
final String openProfileUrl = sender.getOptionalOpenProfileUrl() |
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.
request changed가 여기밖에 없어서, 여기 남깁니다.
78번째 라인의 log.error를 찍는 부분이 있는데,
이 부분에 다른 CustomException을 만드는 게 좋지 않을까요?
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.
현장 리뷰 완료!
- 예상하지 못한 Exception에 대한 handler 생성 #225
#️⃣연관된 이슈
📝작업 내용
알림 보낼 사람의 오픈 프로필 URL이 없으면 알림을 보낼 수 없게 Exception 추가
예상 소요 시간 및 실제 소요 시간
1시간 / 1시간