-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: @PageableDefault 및 페이지 검증 로직을 ArgumentResolver로 개선 #247
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
Merged
Gyuhyeok99
merged 12 commits into
solid-connection:develop
from
Gyuhyeok99:refactor/246-custom-page-request
Apr 8, 2025
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
63714ef
refactor: 커스텀 PageRequest 및 ArgumentResolver 추가
Gyuhyeok99 c91aa31
refactor: 커스텀 PageRequest 및 ArgumentResolver 등록 및 적용
Gyuhyeok99 8e1487c
refactor: 매직 넘버 상수로 교체
Gyuhyeok99 d4f128a
feat: 커스텀 페이지 요청 argument resolver 추가
Gyuhyeok99 c2f0d60
feat: 커스텀 페이지 요청 argument resolver 적용
Gyuhyeok99 78ee605
Merge branch 'develop' into refactor/246-custom-page-request
Gyuhyeok99 e75eb46
refactor: 모든 유효하지 않는 값에 대해서 기본값으로 대체
Gyuhyeok99 a8731a3
refactor: 최대 사이즈 초과 시 최대 사이즈 반환하도록 수정
Gyuhyeok99 7583459
refactor: DEFAULT_PAGE 0으로 변경
Gyuhyeok99 c3c1330
refactor: ParameterizedTest를 활용하여 중복 테스트 코드 제거
Gyuhyeok99 53aabb8
refactor: 불필요한 override 제거
Gyuhyeok99 1f4819c
refactor: 페이징 처리 테스트코드 분리 및 가독성 개선
Gyuhyeok99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
처음엔 이 설정을 유지한 채
이 부분을 없애면 음수나 문자열 같은 잘못된 값들이 부모쪽에서 다 처리를 해줄거라 생각했는데 size를 초과하는 값을 넣으면 기본값인 10이 아니라 최대 size로 반환을 하더라구요. 그래서 이건 지우고 따로 검증하는 방식으로 수정하였습니다.