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

Remove buggy dependencies #9115

Conversation

martmull
Copy link
Contributor

@martmull martmull commented Dec 18, 2024

Fixes double download

@martmull martmull force-pushed the 8239-on-the-kanban-view-when-i-export-my-data-for-the-first-time-download-is-triggered-twice branch 2 times, most recently from 3801754 to a31a720 Compare December 18, 2024 13:40
@martmull martmull force-pushed the 8239-on-the-kanban-view-when-i-export-my-data-for-the-first-time-download-is-triggered-twice branch from a31a720 to 12ba448 Compare December 18, 2024 13:41
@martmull martmull marked this pull request as ready for review December 18, 2024 16:20
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

This PR refactors record fetching logic to fix a double download issue by consolidating functionality into the useLazyFetchAllRecords hook and improving state management.

  • Added progress tracking and download state management in /packages/twenty-front/src/modules/object-record/hooks/useLazyFetchAllRecords.ts
  • Replaced useFetchAllRecordIds with useLazyFetchAllRecords in /packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx
  • Added configurable delay between requests and maximum request limit to prevent server overload
  • Added new test coverage in /packages/twenty-front/src/modules/object-record/hooks/__tests__/useLazyFetchAllRecords.test.tsx

5 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

@martmull martmull enabled auto-merge (squash) December 18, 2024 17:02
@martmull martmull merged commit 5586270 into main Dec 18, 2024
22 checks passed
@martmull martmull deleted the 8239-on-the-kanban-view-when-i-export-my-data-for-the-first-time-download-is-triggered-twice branch December 18, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On the kanban view, when I export my data for the first time, download is triggered twice
2 participants