-
Notifications
You must be signed in to change notification settings - Fork 0
#28,29 - 유저는 투표 결과를 조회할 수 있다. #38
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
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.
전체적으로 코드 깔끔하게 잘 짜셨네요👍👍 고생하셨습니다!
rankedResults[2].voteCount shouldBe 1 | ||
} | ||
} | ||
val calculateRankByBallotSizeAndReceivedAt = listOf( |
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 com.wespot.voteoption.VoteOption | ||
import java.time.LocalDate | ||
|
||
object VoteServiceHelper { |
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.
생각보다 안겹치더라고요! 모아놓아도 문제 없을 것 같아 헬퍼로 구분했어요
인수 테스트 관련한 거는 현재 토큰을 받을 수 있는 방식이 소셜로그인 접근을 해서 받아야 하는데,, 그 과정은 너무 복잡할 것 같아요🥲 따로 어드민용 로그인 API (단순히 이메일, 패스워드 넣어서 토큰 받을 수 있는 API) 만들어서 그걸로 간단하게 진행하면 좋을 것 같은데,,, 재연님 생각은 어떠신가요?! |
테스트 코드를 위한 코드는 별로 좋아하지 않는 편이긴한데, 지금은 말씀하신 것처럼 어쩔 수 없을 것 같아요! 동의합니다 흐흐 |
1. 🔗 관련 이슈
#28
#29
2. 📄 구현한 내용 또는 수정한 내용
1~5등, 1등 전체조회하는 코드 작성했어요!
3. 🙌 추가적으로 알리고 싶은 내용
추가적으로 submodule 가져올 수 있도록 yml 변경했어요.
그리고 코드가 굉장히 긴 것처럼 나오는데, 거의 다 테스트이니 걱정은 노노햇!
4. 🙄 TODO / 고민하고 있는 것들
인수테스트를 작성하려 했는데, Token 값을 어떻게 넘겨야하는지 여쭤봐야겠더라고요! 이번에 알려주시면 다음에 Controller Test까지 작성하겠습니다.
5. ✅ 배포 Checklist