feat: simplification of default-value specification in FieldMetadata (#4592)

* feat: wip refactor default-value

* feat: health check to migrate default value

* fix: tests

* fix: refactor defaultValue to make it more clean

* fix: unit tests

* fix: front-end default value
This commit is contained in:
Jérémy M
2024-03-27 10:56:04 +01:00
committed by GitHub
parent 90ce7709dd
commit 5c0b65eecb
43 changed files with 481 additions and 328 deletions

View File

@ -43,7 +43,7 @@ export class ViewObjectMetadata extends BaseObjectMetadata {
type: FieldMetadataType.TEXT,
label: 'Type',
description: 'View type',
defaultValue: { value: 'table' },
defaultValue: "'table'",
})
type: string;
@ -53,7 +53,7 @@ export class ViewObjectMetadata extends BaseObjectMetadata {
label: 'Key',
description: 'View key',
options: [{ value: 'INDEX', label: 'Index', position: 0, color: 'red' }],
defaultValue: { value: 'INDEX' },
defaultValue: "'INDEX'",
})
@IsNullable()
key: string;
@ -88,7 +88,7 @@ export class ViewObjectMetadata extends BaseObjectMetadata {
type: FieldMetadataType.BOOLEAN,
label: 'Compact View',
description: 'Describes if the view is in compact mode',
defaultValue: { value: false },
defaultValue: false,
})
isCompact: boolean;