Skip to content
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] 챌린지 함께 기록(친구) 페이지네이션 조회 API #246

Merged
merged 5 commits into from
Mar 12, 2023

Conversation

heoboseong7
Copy link
Collaborator

관련 Issue

작업 내용

챌린지 함께 기록 API

  • 챌린지 함께 기록 API 페이지네이션으로 변경
  • following 필드 추가

테스트

  • MockMvc 설정 시 PageableHandlerMethodArgumentResolver 추가

Figma 링크

@heoboseong7 heoboseong7 self-assigned this Mar 12, 2023
@github-actions
Copy link

테스트통과 🤖

1 similar comment
@github-actions
Copy link

테스트통과 🤖

Copy link
Collaborator

@Youhoseong Youhoseong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

왜 다시올렸어요 ㅎㅎ 커밋기록땜시?

Comment on lines 123 to 142
public List<TogetherChallengerResponse> getTogetherChallengers(Long challengeId) {
public List<TogetherChallengerResponse> paginateTogetherChallengers(Long challengeId, Pageable pageable) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TogetherChallenger라는 표현을 화면에서 표현하듯이 그냥 Friends로 표현해보는건어때요?
부사가 마치 형용사처럼 쓰이는게 좀 어색하다고 느껴지는것같아요.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Friends가 더 적절해보이네요

Comment on lines +101 to +102
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

왜 offset기반 페이징하시는건가요~??

Copy link
Collaborator Author

@heoboseong7 heoboseong7 Mar 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정렬 기준때문에 커서 페이징으로 하면 너무 복잡해져서요

@heoboseong7
Copy link
Collaborator Author

왜 다시올렸어요 ㅎㅎ 커밋기록땜시?

네 다른 이슈에서 브랜치를 따버려서 ㅠ

@Youhoseong
Copy link
Collaborator

Youhoseong commented Mar 12, 2023

아! 그리고 단순 의견인데, 이런 수정은 리팩토링이라고 말하기는 힘든 것 같아요.
그저 기능의 변경인거같네요.ㅎㅎ

https://nesoy.github.io/articles/2018-05/Refactoring

@Youhoseong
Copy link
Collaborator

ㅈㅅ

@github-actions
Copy link

테스트통과 🤖

@heoboseong7 heoboseong7 merged commit 5c28358 into main Mar 12, 2023
@heoboseong7 heoboseong7 deleted the issue-#244 branch March 12, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactor] 챌린지 함께 기록(친구) 페이지네이션 조회 API
2 participants