-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Hotfix/BE] 로그아웃 시 팔로워 수가 초기화 되는 현상을 수정한다 #676
Conversation
* fix: follow, unfollow 로직 MemberUpdate와 분리 * test: 재로그인 시 팔로워 수가 변하지 않는지에 대한 인수테스트 추가
🚧 Analysis ResultsF12-676 Bugs : 0 ✅ |
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.
깔끔하게 해결해주셨군요! 고생하셨습니다!
LoginResponse followingResponse = 민초.로그인을_한다(); | ||
민초.로그인한_상태로(followingResponse.getToken()).추가정보를_입력한다(memberRequest); | ||
|
||
final LoginResponse followerResponse = 코린.로그인을_한다(); |
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.
final 키워드가 붙어있군용
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.
메서드 이름 바꿔주세요
public void follow() { | ||
this.followerCount += 1; | ||
} | ||
|
||
public void unfollow() { | ||
if (this.followerCount == 0) { |
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.
이 member가 follow나 unfollow 동작을 하는 것이 아닌데 follow와 unfollow의 능동형으로 쓰는 것은 어색한 것 같아요!
followerCount에 초점을 두고 increaseFollowerCount, decreaseFollowerCount로 쓰는 것이 어떨까요?
@@ -640,6 +636,27 @@ class MemberAcceptanceTest extends AcceptanceTest { | |||
); | |||
} | |||
|
|||
@Test | |||
void 재로그인_시_팔로워_수가_변하지_않는다() { |
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.
👍
🚧 Analysis ResultsF12-676 Bugs : 0 ✅ |
작업 내용