From da9cd97e4222afabe837701ccec63bdce6a01d06 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 16 Apr 2025 20:56:45 +0300 Subject: [PATCH 1/2] HCK-10812: Refine Alternate keys in other RDMS targets --- central_pane/style.json | 9 + .../entity_level/entityLevelConfig.json | 7 + .../field_level/fieldLevelConfig.json | 156 ++++++++++++++++++ 3 files changed, 172 insertions(+) diff --git a/central_pane/style.json b/central_pane/style.json index 50b8d39..40e0e32 100644 --- a/central_pane/style.json +++ b/central_pane/style.json @@ -42,6 +42,15 @@ } ], "indexes", + { + "value": "AK", + "orderingNumbersBy": ["uniqueKey", "compositeUniqueKey"], + "dependency": { + "key": "alternateKey", + "value": true + }, + "width": 16 + }, "refType" ] } diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index d32098f..e01cfb4 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -383,6 +383,13 @@ making sure that you maintain a proper JSON format. "templateOptions": { "editorDialect": "markdown" } + }, + { + "propertyName": "Alternate key", + "propertyKeyword": "alternateKey", + "propertyTooltip": "", + "propertyType": "checkbox", + "setFieldPropertyBy": "compositeUniqueKey" } ] } diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index b51be71..4197346 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -870,6 +870,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, "foreignCollection", "foreignField", "relationshipType", @@ -1601,6 +1627,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, "foreignCollection", "foreignField", "relationshipType", @@ -2156,6 +2208,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, "pattern", { "fieldKeyword": "default", @@ -2339,6 +2417,32 @@ making sure that you maintain a proper JSON format. "templateOptions": { "editorDialect": "markdown" } + }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] } ], "boolean": [ @@ -2363,6 +2467,32 @@ making sure that you maintain a proper JSON format. "enableForReference": true, "propertyType": "checkbox" }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, "default", "sample", { @@ -2592,6 +2722,32 @@ making sure that you maintain a proper JSON format. "addTimestampButton": true, "propertyType": "details", "template": "textarea" + }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] } ], "___0": [], From 1cb538059e84521dcc803bcd2bbbb33d4f7891b6 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Thu, 17 Apr 2025 12:17:00 +0300 Subject: [PATCH 2/2] HCK-10812: Add missing config parts --- .../field_level/fieldLevelConfig.json | 108 +++++++++++++++++- 1 file changed, 104 insertions(+), 4 deletions(-) diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 4197346..576426f 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -2827,6 +2827,32 @@ making sure that you maintain a proper JSON format. "templateOptions": { "editorDialect": "markdown" } + }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] } ], "multiset": [ @@ -2955,6 +2981,32 @@ making sure that you maintain a proper JSON format. "templateOptions": { "editorDialect": "markdown" } + }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] } ], "___1": [], @@ -3058,6 +3110,32 @@ making sure that you maintain a proper JSON format. "templateOptions": { "editorDialect": "markdown" } + }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] } ], "rowid": [ @@ -3543,13 +3621,35 @@ making sure that you maintain a proper JSON format. } ] }, - + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, "foreignCollection", - "foreignField", - "relationshipType", - "relationshipName", "cardinality", "pattern",