From 7a8fa122496fc77bcbf00ea67261fffd551222d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Magrin?= Date: Tue, 3 Dec 2024 17:02:00 +0100 Subject: [PATCH] fix: mark kanbanFieldMetadataId as deprecated --- packages/twenty-front/src/modules/views/types/GraphQLView.ts | 3 +++ packages/twenty-front/src/modules/views/types/View.ts | 3 +++ .../src/modules/view/standard-objects/view.workspace-entity.ts | 3 +++ 3 files changed, 9 insertions(+) diff --git a/packages/twenty-front/src/modules/views/types/GraphQLView.ts b/packages/twenty-front/src/modules/views/types/GraphQLView.ts index cb8729f91564..abb71e868ad8 100644 --- a/packages/twenty-front/src/modules/views/types/GraphQLView.ts +++ b/packages/twenty-front/src/modules/views/types/GraphQLView.ts @@ -11,6 +11,9 @@ export type GraphQLView = { name: string; type: ViewType; key: ViewKey | null; + /** + * @deprecated Use `viewGroups.fieldMetadataId` instead. + */ kanbanFieldMetadataId: string; objectMetadataId: string; isCompact: boolean; diff --git a/packages/twenty-front/src/modules/views/types/View.ts b/packages/twenty-front/src/modules/views/types/View.ts index 111c5a5002ed..df405eaa7094 100644 --- a/packages/twenty-front/src/modules/views/types/View.ts +++ b/packages/twenty-front/src/modules/views/types/View.ts @@ -18,6 +18,9 @@ export type View = { viewFilters: ViewFilter[]; viewFilterGroups?: ViewFilterGroup[]; viewSorts: ViewSort[]; + /** + * @deprecated Use `viewGroups.fieldMetadataId` instead. + */ kanbanFieldMetadataId: string; position: number; icon: string; diff --git a/packages/twenty-server/src/modules/view/standard-objects/view.workspace-entity.ts b/packages/twenty-server/src/modules/view/standard-objects/view.workspace-entity.ts index 67af0c9fa215..96eb9d1e34b2 100644 --- a/packages/twenty-server/src/modules/view/standard-objects/view.workspace-entity.ts +++ b/packages/twenty-server/src/modules/view/standard-objects/view.workspace-entity.ts @@ -84,6 +84,9 @@ export class ViewWorkspaceEntity extends BaseWorkspaceEntity { label: 'kanbanfieldMetadataId', description: 'View Kanban column field', }) + /** + * @deprecated Use `viewGroups.fieldMetadataId` instead + */ kanbanFieldMetadataId: string; @WorkspaceField({