-
Notifications
You must be signed in to change notification settings - Fork 8
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
totalPages => paginationSizes 로 변경 #906
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.
'>', '<' 버튼 관련 이야기에 답변만 들으면 merge해도 될 것 같네요~! 고생하셨습니다 헤인~!
frontend/src/mocks/handlers.ts
Outdated
const totalElements = filteredTemplates.length; | ||
const totalPages = Math.ceil(totalElements / size); | ||
const paginationSizes = Math.min(Math.ceil(totalElements / size - page + 1), 5); |
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.
그럼 여기서 totalElements도 필요 없을까요?!
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.
굳 멋쟁이 선생님들~!
…de-zap into refactor/899-remove-totalPages
⚡️ 관련 이슈
📍주요 변경 사항
검색 성능을 올리기 위해 백엔드와 함께 api를 변경하였습니다. 이에 따라 totalPages와 totalElements 를 제거하고, paginationSizes를 적용하였습니다. (paginationSizes 는 현재 페이지를 포함하여 다음에 몇 페이지까지 있는지를 반환하는
number
입니다.)<<
,<
,>
,>>
버튼 모두 삭제하였습니다.🎸기타
(관련 백엔드 api 변경 PR) 페이지네이션 처리 시 최대 다음 페이지 수를 5개로 제한 #902
아래와 같이 api 변경될 예정이라고 합니다.
(11/13 업데이트) paginationSizes로 변수명이 변경되었습니다.
🍗 PR 첫 리뷰 마감 기한
11/14 12:30