-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BE] refactor: 알림 서비스 다른 도메인 의존성 제거 #740
base: develop
Are you sure you want to change the base?
Conversation
Test Results226 tests +149 226 ✅ +149 19s ⏱️ +18s Results for commit 2e452d7. ± Comparison against base commit 6bc242f. This pull request removes 77 and adds 226 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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.
조금 스파게티였던 구조가 훨씬 깔끔해졌네요 👍
notificationService.sendNotification( | ||
DEFAULT_TITLE, |
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.
예전에 작성된 코드같긴 한데
하는 김에 DEFAULT_TITLE
을 static으로 두면 어떨까요?
|
||
void sendFootprintNotification(String title, String content, List<String> receiverTokens); | ||
|
||
void sendChatNotification(Long chatRoomId, ChatMessageSocketResponse response, Club club); | ||
|
||
void sendPlaygroundJoinNotification(String title, String content, List<String> receiverTokens); |
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.
오오 추상 메서드가 많이 줄어들었네요
"profilePictureUrl", response.profilePictureUrl() == null ? "" : response.profilePictureUrl(), | ||
"clubPictureUrl", club.getImageUrl() == null ? "" : club.getImageUrl(), |
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.
테스트가 터져서 확인해보니 해당부분 문제가 보이더라구요~!
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.
고생 많았습니다 👍
import static com.happy.friendogly.notification.domain.NotificationType.FOOTPRINT; | ||
|
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.
static import는 제거하는게 어떨까요?
클래스 내부에 선언된 private 상수인지, 공통적으로 사용하는 enum인지 알아보기 어려워지는 것 같습니다.
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.
고생하셨어요.
2e452d7
이슈
개발 사항