-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix export view missing column and viewGroups not persisted bug #10584
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.
LGTM, works fine
@@ -157,7 +157,7 @@ export class MigrateRichTextContentPatchCommand extends MaintainedWorkspacesMigr | |||
return await this.featureFlagRepository.exists({ | |||
where: { | |||
workspaceId, | |||
key: FeatureFlagKey.IsRichTextV2Enabled, |
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.
Is it on purpose?
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.
yes, @etiennejouan has removed the flags but still using it in the migration command
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
This PR addresses two key issues in the Twenty CRM platform:
- Fixes persistence of viewGroups (GroupBy feature) by removing the unnecessary
viewBarId
parameter fromuseRecordGroupVisibility
hook calls across multiple components - Resolves missing columns in export view by properly incorporating the current view ID when generating record index IDs for exports
Key changes:
- Modified
useExportMultipleRecordsAction.tsx
to usegetRecordIndexIdFromObjectNamePluralAndViewId
for correct column inclusion in exports - Updated
useDeleteMultipleRecordsAction.tsx
anduseDestroyMultipleRecordsAction.tsx
to use current view ID context for proper record table identification - Removed
viewBarId
parameter fromuseRecordGroupVisibility
hook calls in multiple components to fix group persistence - Changed
useSaveCurrentViewGroups.ts
to retrieve current view ID from Recoil state rather than requiring it as a parameter - Modified
useRecordGroupReorder.ts
to properly persist group reordering changes to the backend
12 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Fixes #10535
Also fixes missing columns in export view