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

Fixed mass deletion page size. #6275

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Conversation

lucasbordeau
Copy link
Contributor

Fixed when page size was not the same as the one used for calculating number of pages

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 in fetchMore function
  • Updated logic to handle lastCursor correctly

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 to mockPageSize in packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFetchAllRecordIds.ts
  • Added limit parameter to query in packages/twenty-front/src/modules/object-record/hooks/useFetchAllRecordIds.ts

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@lucasbordeau lucasbordeau merged commit 341328f into main Jul 16, 2024
13 checks passed
@lucasbordeau lucasbordeau deleted the fix/mass-deletion-page-size-bug branch July 16, 2024 09:45
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.

4 participants