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

Fix export view missing column and viewGroups not persisted bug #10584

Merged
merged 6 commits into from
Feb 28, 2025

Conversation

charlesBochet
Copy link
Member

Fixes #10535
Also fixes missing columns in export view

Copy link
Contributor

@bosiraphael bosiraphael left a 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,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it on purpose?

Copy link
Member Author

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

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 two key issues in the Twenty CRM platform:

  • Fixes persistence of viewGroups (GroupBy feature) by removing the unnecessary viewBarId parameter from useRecordGroupVisibility 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 use getRecordIndexIdFromObjectNamePluralAndViewId for correct column inclusion in exports
  • Updated useDeleteMultipleRecordsAction.tsx and useDestroyMultipleRecordsAction.tsx to use current view ID context for proper record table identification
  • Removed viewBarId parameter from useRecordGroupVisibility 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

@charlesBochet charlesBochet merged commit 00b650a into main Feb 28, 2025
26 checks passed
@charlesBochet charlesBochet deleted the fix-bug-export-view branch February 28, 2025 14:59
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.

Updates on viewGroups (GroupBy Feature) are not persisted
2 participants