From f72221d3ba807ece8798cc5cb62f16ddef762ac2 Mon Sep 17 00:00:00 2001 From: DrMyroslav Date: Thu, 26 May 2022 16:06:19 +0300 Subject: [PATCH 1/3] enforce PK --- .../entity_level/entityLevelConfig.json | 55 +- .../field_level/fieldLevelConfig.json | 1053 ++++++++++++++--- 2 files changed, 954 insertions(+), 154 deletions(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 3811a55..b99a459 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -638,7 +638,38 @@ making sure that you maintain a proper JSON format. "propertyType": "group", "groupItemLimit": 1, "propertyKeyword": "primaryKey", - "propertyTooltip": "", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to create a composite primary key definition for this table", + "dependency": { + "type": "and", + "values": [ + { + "level": "children", + "key": "primaryKey", + "value": true + }, + { + "type": "not", + "values": { + "level": "children", + "key": "compositePrimaryKey", + "value": true + } + } + ] + } + }, + { + "tooltip": "Remove or update the existing composite primary key definition prior to unlock the possibility to create a new composite primary key definition for this table", + "dependency": { + "key": "primaryKey", + "minLength": 1 + } + } + ] + }, "structure": [ { "propertyName": "Constraint name", @@ -681,6 +712,28 @@ making sure that you maintain a proper JSON format. "propertyType": "details", "template": "textarea" } + ], + "disabledOnCondition": [ + { + "level": "children", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } ] }, { diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 79f69f4..f573260 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -208,9 +208,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -223,28 +276,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -560,9 +643,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -575,28 +711,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -880,9 +1046,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -895,28 +1114,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -1253,9 +1502,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -1268,28 +1570,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -1615,9 +1947,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -1630,28 +2015,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -1939,9 +2354,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -1954,28 +2422,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -2368,9 +2866,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -2383,28 +2934,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -2672,9 +3253,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -2687,28 +3321,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -2997,9 +3661,62 @@ making sure that you maintain a proper JSON format. "propertyName": "Primary key", "propertyKeyword": "compositePrimaryKey", "propertyType": "checkbox", + "propertyTooltip": { + "disabled": [ + { + "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", + "dependency": { + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing composite primary key definition prior to unlock the possibility to mark this single column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to mark this column as the new primary key for this table", + "dependency": { + "level": "siblings", + "key": "primaryKey", + "value": true + } + } + ] + }, "dependency": { - "key": "compositePrimaryKey", - "value": true + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + }, + { + "level": "siblings", + "value": { + "type": "and", + "values": [ + { + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + } + ] + } + } + ] }, "disabled": true }, @@ -3012,28 +3729,58 @@ making sure that you maintain a proper JSON format. "type": "and", "values": [ { - "type": "or", - "values": [ - { - "key": "compositePrimaryKey", - "value": false - }, - { - "key": "compositePrimaryKey", - "exist": false + "type": "not", + "values": { + "level": "siblings", + "key": "compositePrimaryKey", + "value": true + } + }, + { + "type": "not", + "values": [{ + "level": "siblings", + "value": { + "type": "and", + "values": [{ + "key": "primaryKey", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": false + }] } - ] + }] }, { - "type": "or", + "type": "and", "values": [ { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "exist": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } From 01fcbb4bf2603a9ed1e1c963f0804f4a02f51f17 Mon Sep 17 00:00:00 2001 From: DrMyroslav Date: Mon, 30 May 2022 17:47:36 +0300 Subject: [PATCH 2/3] add adapter --- adapter/0.1.20.json | 58 +++++ .../entity_level/entityLevelConfig.json | 26 +- .../field_level/fieldLevelConfig.json | 236 +++++++++++++++--- 3 files changed, 279 insertions(+), 41 deletions(-) create mode 100644 adapter/0.1.20.json diff --git a/adapter/0.1.20.json b/adapter/0.1.20.json new file mode 100644 index 0000000..9c89544 --- /dev/null +++ b/adapter/0.1.20.json @@ -0,0 +1,58 @@ +/** + * Copyright © 2016-2018 by IntegrIT S.A. dba Hackolade. All rights reserved. + * + * The copyright to the computer software herein is the property of IntegrIT S.A. + * The software may be used and/or copied only with the written permission of + * IntegrIT S.A. or in accordance with the terms and conditions stipulated in + * the agreement/contract under which the software has been supplied. + * + * { + * "add": { + * "entity": [], + * "container": [], + * "model": [], + * "view": [], + * "field": { + * "": [] + * } + * }, + * "delete": { + * "entity": [], + * "container": [], + * "model": [], + * "view": [], + * "field": { + * "": [] + * } + * }, + * "modify": { + * "entity": [ + * { + * "from": { }, + * "to": { } + * } + * ], + * "container": [], + * "model": [], + * "view": [], + * "field": [] + * }, + * } + */ + { + "modify": { + "entity": [ + [ + "setRdbmEntityCompositeKeys", + "primaryKey", + "compositePrimaryKey", + "primaryKey", + [ + "unique", + "compositePrimaryKey", + "compositeUniqueKey" + ] + ] + ] + } +} \ No newline at end of file diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index b99a459..2b68438 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -724,12 +724,30 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositePrimaryKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositePrimaryKey", + "value": false + }, + { + "key": "compositePrimaryKey", + "exist": false + } + ] }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index f573260..701af94 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -257,8 +257,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -294,8 +303,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -692,8 +710,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -729,8 +756,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -1095,8 +1131,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -1132,8 +1177,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -1508,7 +1562,7 @@ making sure that you maintain a proper JSON format. "tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition", "dependency": { "key": "compositePrimaryKey", - "value": true + "value": true } }, { @@ -1551,8 +1605,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -1588,8 +1651,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -1996,8 +2068,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -2033,8 +2114,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -2403,8 +2493,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -2440,8 +2539,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -2915,8 +3023,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -2952,8 +3069,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -3302,8 +3428,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -3339,8 +3474,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] @@ -3710,8 +3854,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] } ] } @@ -3747,8 +3900,17 @@ making sure that you maintain a proper JSON format. "value": true }, { - "key": "compositeUniqueKey", - "value": false + "type": "or", + "values": [ + { + "key": "compositeUniqueKey", + "value": false + }, + { + "key": "compositeUniqueKey", + "exist": false + } + ] }] } }] From af11328672cb244afa84c530295333c72005a004 Mon Sep 17 00:00:00 2001 From: DrMyroslav Date: Tue, 31 May 2022 14:08:47 +0300 Subject: [PATCH 3/3] chenge version app --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2456316..af59281 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "versionDate": "2022-05-13", "author": "hackolade", "engines": { - "hackolade": "6.0.8", + "hackolade": "6.1.2", "hackoladePlugin": "1.2.0" }, "contributes": {