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

9018 fix batch delete follow ups #9166

Merged
merged 5 commits into from
Dec 20, 2024
Merged

Conversation

bosiraphael
Copy link
Contributor

Follow ups on #9018

@bosiraphael bosiraphael changed the title 9018 fix batch delete part 2 9018 fix batch delete follow ups Dec 20, 2024
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 addresses batch deletion performance and UI feedback issues by implementing several key changes to the record deletion system.

  • Replaced hardcoded action keys with standardized enums (MultipleRecordsActionKeys, SingleRecordActionKeys) for better type safety and maintainability
  • Added load-more locking during deletion operations in RecordIndexActionMenu to prevent UI inconsistencies
  • Moved favorite deletion handling to a new deleteCascadeQueue for better cascade operation management
  • Fixed incorrect record selection count during batch deletions by improving filter handling in useDeleteMultipleRecordsAction
  • Optimized batch deletion performance by removing individual optimistic updates in favor of batch updates in useDeleteManyRecords

21 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -18,5 +18,5 @@
"src/**/*.d.ts",
"src/**/*.ts",
"src/**/*.tsx"
]
, "src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/types/WorkflowVersionSingleRecordActionsKeys.ts" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@charlesBochet charlesBochet merged commit 1acf845 into main Dec 20, 2024
18 of 19 checks passed
@charlesBochet charlesBochet deleted the 9018-fix-batch-delete-part-2 branch December 20, 2024 10:41
mdrazak2001 pushed a commit to mdrazak2001/twenty that referenced this pull request Dec 20, 2024
samyakpiya pushed a commit to samyakpiya/twenty that referenced this pull request Dec 28, 2024
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.

2 participants