fix: record group issues (#8854)

This PR is fixing the following issues with record groups:

- [x] [Backend] - Only update view groups when a field is edited if this
one already has view groups
- [x] [Backend] - Editing a Select field metadata option brake view
groups
- [x] [Frontend] - Changing the group by field from one to another brake
record group and doesn't remove the previous ones
- [x] [Frontend & Backend] - Mark `kanbanFieldMetadataId` as deprecated
in favour of `viewGroups.fieldMetadataId`

Also the following has been checked:

- [x] Properly displayed a table with only one view groups
- [x] Properly displayed a table without view groups
This commit is contained in:
Jérémy M
2024-12-04 16:03:25 +01:00
committed by GitHub
parent 9142bdfb92
commit 2fa5fb7de7
5 changed files with 41 additions and 8 deletions

View File

@ -87,6 +87,9 @@ export class ViewWorkspaceEntity extends BaseWorkspaceEntity {
label: 'kanbanfieldMetadataId',
description: 'View Kanban column field',
})
/**
* @deprecated Use `viewGroups.fieldMetadataId` instead
*/
kanbanFieldMetadataId: string;
@WorkspaceField({