From 1f183d61f7deb0c84f0d7ba4157517dfe3e3ebe0 Mon Sep 17 00:00:00 2001 From: Alik Rakhmonov Date: Wed, 18 Sep 2024 11:48:12 +0300 Subject: [PATCH] HCK-7984: Automatically mark PK as Not Null --- .../field_level/fieldLevelConfig.json | 220 +++++++++++++++++- 1 file changed, 210 insertions(+), 10 deletions(-) diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 27b813b..a643d1b 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -193,7 +193,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -568,7 +588,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -1023,7 +1063,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -1306,7 +1366,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -1572,7 +1652,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -1837,7 +1937,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -2122,7 +2242,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -2428,7 +2568,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -2691,7 +2851,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key", @@ -2986,7 +3166,27 @@ making sure that you maintain a proper JSON format. "propertyName": "Not null", "propertyKeyword": "required", "enableForReference": true, - "propertyType": "checkbox" + "propertyType": "checkbox", + "dependency": { + "key": "primaryKey", + "value": true + }, + "disabled": true, + "defaultValue": true + }, + { + "propertyName": "Not null", + "propertyKeyword": "required", + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "not", + "values": { + "key": "primaryKey", + "value": true + } + }, + "defaultValue": false }, { "propertyName": "Primary key",