-
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: 상품 및 꿀조합 검색 결과 API 페이징 방식 변경 #11
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.
충돌나는 코드만 수정부탁드려용
|
||
final PageDto pageDto = PageDto.toDto(products); | ||
final boolean hasNext = products.size() > DEFAULT_PAGE_SIZE; |
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.
자바 문법인데 혹시 17로 버전 올려서 그런가여?!
근데 그것보다 이거 다시 보니까 로직상 잘못된 거 같은데 뭔가 이상하지 않나요..?
다시 한 번 봐야겠네요,,
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.
로직 잘못됐어서 수정했어용
// when | ||
final var response = 상품_검색_결과_조회_요청("망고", FIRST_PAGE); | ||
final var response = 상품_검색_결과_조회_요청("망고", 0L); |
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.
첫 아이디를 받는거라서 FIRST_PAGE 제거한건가요?
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.
FIRST_PAGE는 이름이 안맞는 거 같아서 바꿨는데, 얘도 상수로 빼버릴까요??
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.
그대로 가도 될 거 같아요
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit f94d320. ♻️ This comment has been updated with latest results. |
hasNext 구하는 과정이 잘못됐었네요,, 한 번 더 확인 안했으면 놓칠뻔 기존에 다른 메서드에서 사용중인 이거 전에 머지된 상품 자동 완성 부분 로직도 수정해야 되는데, 이거 머지되면 수정해서 새로 PR 올릴게여 |
Issue
✨ 구현한 기능
상품 검색 결과 API
,꿀조합 검색 결과 API
AS-IS : Offset 기반 페이지네이션
TO-BE : Cursor 기반 페이지네이션
++
꿀조합 검색 결과
: id 오름차순 정렬 -> 내림차순 정렬로 변경📢 논의하고 싶은 내용
X
🎸 기타
X
⏰ 일정