-
Notifications
You must be signed in to change notification settings - Fork 7
[BM-142] 회원 정보 수정 Service 메서드 구현 #37
Conversation
Codecov Report
@@ Coverage Diff @@
## main #37 +/- ##
============================================
+ Coverage 70.51% 71.10% +0.58%
- Complexity 132 134 +2
============================================
Files 33 33
Lines 563 571 +8
Branches 15 15
============================================
+ Hits 397 406 +9
+ Misses 160 159 -1
Partials 6 6
Continue to review full report at Codecov.
|
📊 BidMarket-pr-37 분석 결과 확인 링크 |
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.
👍
필요하다면 어떤 함수든 인자에 대한 검증을 해주는 게 가장 좋다고 생각합니다!
그래서 이러한 검증이 반복되지 않도록 객체 필드에 대응되는 클래스를 만들고 그 클래스를 활용하여 검증을 한다고 생각합니다!!
Assert.notNull(profileImage, "profileImage must be provide"); | ||
|
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.
사용자의 profile image가 없는 경우는 없나요??
실제로 없는 경우에는 어떻게 처리하면 좋을까요?
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.
구글 OAuth 로그인시 구글 프로필 사진을 유저 정보에 저장합니다. 프론트에서 요청을 보낼때 기존 데이터를 보내주면 될것 같습니다.
Service 레이어의 회원 정보 수정 기능 테스트와 프로덕션 코드를 구현했습니다.
entity의 update 메서드에서 인자 검증 의미가 있는 검증일까요?