-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fixed mass deletion page size. #6275
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.
PR Summary
- Fixed page size inconsistency in
packages/twenty-front/src/modules/object-record/hooks/useFetchAllRecordIds.ts
- Introduced
limit
variable infetchMore
function - Updated logic to handle
lastCursor
correctly
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
- Introduced dynamic page size for batch deletions in
packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts
- Fetched page size from
apiConfigState
for consistency - Ensured alignment between page size calculation and deletion process
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
- Set
limit
tomockPageSize
inpackages/twenty-front/src/modules/object-record/hooks/__mocks__/useFetchAllRecordIds.ts
- Added
limit
parameter to query inpackages/twenty-front/src/modules/object-record/hooks/useFetchAllRecordIds.ts
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Fixed when page size was not the same as the one used for calculating number of pages