From 4fcdc6717ef1b97ae600b2ac8d5f6911a7a39320 Mon Sep 17 00:00:00 2001 From: Liench Volodymyr Date: Fri, 20 Jan 2023 14:47:57 +0200 Subject: [PATCH 1/2] HCK-2888: disabled in table udt types and added tooltip for them --- .../field_level/fieldLevelConfig.json | 30 +++++++++++++++++-- types/composite.json | 11 ++++--- types/domain.json | 11 ++++--- types/enum.json | 11 ++++--- types/range_udt.json | 11 ++++--- 5 files changed, 56 insertions(+), 18 deletions(-) diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index aa9eafa..31a7301 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -4696,6 +4696,33 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "An optional collation for the domain. If no collation is specified, the underlying data type's default collation is used. The underlying type must be collatable if COLLATE is specified.", "propertyType": "text" }, + { + "propertyName": "Array type", + "propertyType": "group", + "propertyKeyword": "array_type", + "propertyTooltip": "Declaring the array number of dimensions is simply for documentation; it does not affect run-time behavior.", + "enableForReference": true, + "dependency": { + "type": "or", + "values": [ + { + "key": "$ref", + "exist": true + } + ] + }, + "structure": [ + { + "propertyName": "Size limit", + "propertyKeyword": "array_size_limit", + "propertyTooltip": "Declaring the array size is simply for documentation; it does not affect run-time behavior.", + "propertyType": "numeric", + "valueType": "number", + "minValue": 0, + "step": 1 + } + ] + }, { "propertyName": "Not null", "propertyKeyword": "required", @@ -4742,7 +4769,6 @@ making sure that you maintain a proper JSON format. "propertyType": "details", "template": "textarea" } - ], - "___2": [] + ] } } \ No newline at end of file diff --git a/types/composite.json b/types/composite.json index f7a9a1b..e6d0eab 100644 --- a/types/composite.json +++ b/types/composite.json @@ -3,10 +3,13 @@ "erdAbbreviation": "", "dtdAbbreviation": "{...}", "parentType": "document", - "hiddenOnEntity": [ - "collection", - "view" - ], + "hiddenOnEntity": ["view"], + "dependency": { + "level": "parent", + "key": "type", + "value": "definitions" + }, + "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", "defaultValues": { "properties": [] } diff --git a/types/domain.json b/types/domain.json index 234a5c1..020f7cd 100644 --- a/types/domain.json +++ b/types/domain.json @@ -3,9 +3,12 @@ "erdAbbreviation": "", "dtdAbbreviation": "{dmn}", "parentType": "string", - "hiddenOnEntity": [ - "collection", - "view" - ], + "hiddenOnEntity": ["view"], + "dependency": { + "level": "parent", + "key": "type", + "value": "definitions" + }, + "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", "defaultValues": {} } \ No newline at end of file diff --git a/types/enum.json b/types/enum.json index 9398faf..25a7a20 100644 --- a/types/enum.json +++ b/types/enum.json @@ -3,9 +3,12 @@ "erdAbbreviation": "", "dtdAbbreviation": "{enum}", "parentType": "string", - "hiddenOnEntity": [ - "collection", - "view" - ], + "hiddenOnEntity": ["view"], + "dependency": { + "level": "parent", + "key": "type", + "value": "definitions" + }, + "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", "defaultValues": {} } \ No newline at end of file diff --git a/types/range_udt.json b/types/range_udt.json index 8a3d9e5..bc9eeca 100644 --- a/types/range_udt.json +++ b/types/range_udt.json @@ -3,9 +3,12 @@ "erdAbbreviation": "", "dtdAbbreviation": "{123}", "parentType": "string", - "hiddenOnEntity": [ - "collection", - "view" - ], + "hiddenOnEntity": ["view"], + "dependency": { + "level": "parent", + "key": "type", + "value": "definitions" + }, + "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", "defaultValues": {} } \ No newline at end of file From 93fde6c8e81427a0831b714d017b8421cefffe14 Mon Sep 17 00:00:00 2001 From: Liench Volodymyr Date: Fri, 20 Jan 2023 14:56:58 +0200 Subject: [PATCH 2/2] format files --- types/composite.json | 16 +++++++++------- types/domain.json | 16 +++++++++------- types/enum.json | 4 +++- types/range_udt.json | 16 +++++++++------- 4 files changed, 30 insertions(+), 22 deletions(-) diff --git a/types/composite.json b/types/composite.json index e6d0eab..8d58ec6 100644 --- a/types/composite.json +++ b/types/composite.json @@ -3,13 +3,15 @@ "erdAbbreviation": "", "dtdAbbreviation": "{...}", "parentType": "document", - "hiddenOnEntity": ["view"], - "dependency": { - "level": "parent", - "key": "type", - "value": "definitions" - }, - "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", + "hiddenOnEntity": [ + "view" + ], + "dependency": { + "level": "parent", + "key": "type", + "value": "definitions" + }, + "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", "defaultValues": { "properties": [] } diff --git a/types/domain.json b/types/domain.json index 020f7cd..b9b6f80 100644 --- a/types/domain.json +++ b/types/domain.json @@ -3,12 +3,14 @@ "erdAbbreviation": "", "dtdAbbreviation": "{dmn}", "parentType": "string", - "hiddenOnEntity": ["view"], - "dependency": { - "level": "parent", - "key": "type", - "value": "definitions" - }, - "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", + "hiddenOnEntity": [ + "view" + ], + "dependency": { + "level": "parent", + "key": "type", + "value": "definitions" + }, + "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", "defaultValues": {} } \ No newline at end of file diff --git a/types/enum.json b/types/enum.json index 25a7a20..be3ef6a 100644 --- a/types/enum.json +++ b/types/enum.json @@ -3,7 +3,9 @@ "erdAbbreviation": "", "dtdAbbreviation": "{enum}", "parentType": "string", - "hiddenOnEntity": ["view"], + "hiddenOnEntity": [ + "view" + ], "dependency": { "level": "parent", "key": "type", diff --git a/types/range_udt.json b/types/range_udt.json index bc9eeca..6e8d1d7 100644 --- a/types/range_udt.json +++ b/types/range_udt.json @@ -3,12 +3,14 @@ "erdAbbreviation": "", "dtdAbbreviation": "{123}", "parentType": "string", - "hiddenOnEntity": ["view"], - "dependency": { - "level": "parent", - "key": "type", - "value": "definitions" - }, - "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", + "hiddenOnEntity": [ + "view" + ], + "dependency": { + "level": "parent", + "key": "type", + "value": "definitions" + }, + "disabledTooltip": "For these datatypes, the PostgreSQL specification requires that you create first a UDT, then reference it in your model.", "defaultValues": {} } \ No newline at end of file