From 4040a6fc209203e61208fad5c6a69afa1109f628 Mon Sep 17 00:00:00 2001 From: Yevhenii Moroziuk Date: Thu, 12 Sep 2024 18:32:49 +0300 Subject: [PATCH] HCK-7973 (#128) * HCK-7651: set notNull for PK by default * HCK-7651: Extend config for remaining field types --------- Co-authored-by: chulanovskyi-bs <56116665+chulanovskyi-bs@users.noreply.github.com> --- .../field_level/fieldLevelConfig.json | 219 +++++++++++++----- 1 file changed, 162 insertions(+), 57 deletions(-) diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 2a1de53..352f644 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -816,25 +816,56 @@ making sure that you maintain a proper JSON format. "enableForReference": true, "propertyType": "checkbox", "dependency": { - "type": "not", + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "and", "values": [ { - "type": "and", + "type": "or", "values": [ { - "level": "root", - "key": "viewOn", - "exist": true + "key": "primaryKey", + "value": false }, { - "level": "root", - "key": "duality", - "value": true + "key": "primaryKey", + "exists": false + } + ] + }, + { + "type": "not", + "values": [ + { + "type": "and", + "values": [ + { + "level": "root", + "key": "viewOn", + "exist": true + }, + { + "level": "root", + "key": "duality", + "value": true + } + ] } ] } ] - } + }, + "defaultValue": false }, { "propertyName": "Not null constraint name", @@ -2514,25 +2545,56 @@ making sure that you maintain a proper JSON format. "enableForReference": true, "propertyType": "checkbox", "dependency": { - "type": "not", + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "and", "values": [ { - "type": "and", + "type": "or", "values": [ { - "level": "root", - "key": "viewOn", - "exist": true + "key": "primaryKey", + "value": false }, { - "level": "root", - "key": "duality", - "value": true + "key": "primaryKey", + "exists": false + } + ] + }, + { + "type": "not", + "values": [ + { + "type": "and", + "values": [ + { + "level": "root", + "key": "viewOn", + "exist": true + }, + { + "level": "root", + "key": "duality", + "value": true + } + ] } ] } ] - } + }, + "defaultValue": false }, { "propertyName": "Identity", @@ -4410,25 +4472,56 @@ making sure that you maintain a proper JSON format. "enableForReference": true, "propertyType": "checkbox", "dependency": { - "type": "not", + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "and", "values": [ { - "type": "and", + "type": "or", "values": [ { - "level": "root", - "key": "viewOn", - "exist": true + "key": "primaryKey", + "value": false }, { - "level": "root", - "key": "duality", - "value": true + "key": "primaryKey", + "exists": false + } + ] + }, + { + "type": "not", + "values": [ + { + "type": "and", + "values": [ + { + "level": "root", + "key": "viewOn", + "exist": true + }, + { + "level": "root", + "key": "duality", + "value": true + } + ] } ] } ] - } + }, + "defaultValue": false }, { "propertyName": "Masked with function", @@ -7624,25 +7717,31 @@ making sure that you maintain a proper JSON format. "enableForReference": true, "propertyType": "checkbox", "dependency": { - "type": "not", + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", "values": [ { - "type": "and", - "values": [ - { - "level": "root", - "key": "viewOn", - "exist": true - }, - { - "level": "root", - "key": "duality", - "value": true - } - ] + "key": "primaryKey", + "value": false + }, + { + "key": "primaryKey", + "exists": false } ] - } + }, + "defaultValue": false }, { "propertyName": "Masked with function", @@ -8845,25 +8944,31 @@ making sure that you maintain a proper JSON format. "enableForReference": true, "propertyType": "checkbox", "dependency": { - "type": "not", + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", "values": [ { - "type": "and", - "values": [ - { - "level": "root", - "key": "viewOn", - "exist": true - }, - { - "level": "root", - "key": "duality", - "value": true - } - ] + "key": "primaryKey", + "value": false + }, + { + "key": "primaryKey", + "exists": false } ] - } + }, + "defaultValue": false }, { "propertyName": "Row GUID Column",