-
Notifications
You must be signed in to change notification settings - Fork 1
[Feat] #692 [FEAT] SOPT Makers Chapter 추가에 따른 SoptPart 수정 및 SoptampUser 생성 로직 보완 #695
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
Changes from 3 commits
ea73d0b
749a85f
c047d44
baf672e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,10 +68,9 @@ public List<AppServiceEntryStatusResponse> checkAppServiceEntryStatus(Long userI | |
| if(userId == null){ | ||
| return this.getOnlyAppServiceInfo(); | ||
| } | ||
| UserStatus status = platformService.getStatus(userId); | ||
|
|
||
| // TODO : 추후 유저 생성 api response 변경해 생성 api 쪽에서 soptamp user upsert 하도록 변경 | ||
| PlatformUserInfoResponse platformUserInfo = platformService.getPlatformUserInfoResponse(userId); | ||
| UserStatus status = platformService.getStatus(platformUserInfo); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오호 platformUserInfo를 한 번 조회한 뒤 status 계산에 재사용하도록 바뀐 걸까요? 어떤 변화였을지 궁금합니다! 우선 좋아보여요,,,, 😍
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 맞아요! 기존에
이런 흐름이어서
로 분리했어요. 미세한 오버헤드가 있을 수 있지만, 기존 동작을 잘 유지하고 현재 상황에서 효율적이라고 생각했습니다~ |
||
|
|
||
| List<AppServiceEntryStatusResponse> appServiceEntryStatusResponses = appServiceService.getAllAppService().stream() | ||
| .filter(appServiceInfo -> isServiceVisibleToUser(appServiceInfo, status)) | ||
|
|
||
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.
요 부분 위에선 '.filter(a -> Boolean.TRUE.equals(a.isSopt()))' 으로 처리되어있는데 이부분에선 안되어있어서 NPE가 날 수 있을 것같아 혹시 통일하는 방향은 어떠실까요..?
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.
좋은데요?? 바로 반영하겠습니다~~ 💯