-
Notifications
You must be signed in to change notification settings - Fork 0
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
[REFACTOR] MemberService 순환 참조 문제 #272
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.
수고하셨습니다!
merge 작업 전에 변경된 부분 테스트 코드나 포스트맨으로 한 번 테스트해보면 좋을 것 같아요~
큰 문제는 없어보여서 우선 승인해둘게요! 반영할 리뷰 있으면 반영 및 테스트 후 merge 해주세요~
public void deleteMember(Member member) { | ||
memberRepository.delete(member); | ||
} |
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.
- 메서드 이름은 delete로 간결하게 표현해도 좋을 것 같아요.
- 연관관계 관련해서 delete 기능이 잘 동작하는 지 테스트 코드나 포스트맨으로 테스트 한 번 돌려보면 좋을 것 같아요 :)
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.
둘 다 완료했습니다!
return memberRepository.findById(id) | ||
.orElseThrow(() -> new MemberException(INVALID_MEMBER)); | ||
private void createDailyRoutines(Member member, List<Long> routineIds) { | ||
routineIds.forEach(id -> memberRoutineSaver.checkHasDeletedAndSave(member, routineFinder.findById(id))); |
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.
routineFinder.findById(id)
부분은 변수로 빼면 더 직관적일 것 같아요
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.
메소드로 말씀이신가요??
✨ Related Issue
📝 기능 구현 명세
🐥 추가적인 언급 사항