From 5e87a2c1e3ec68386813f5fe6cc98a598ee00bba Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 18 Sep 2024 11:40:51 +0300 Subject: [PATCH] HCK-7984: Automatically mark PK as Not Null --- .../field_level/fieldLevelConfig.json | 138 +++++++++++++++++- 1 file changed, 132 insertions(+), 6 deletions(-) diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 01af208..d92c2c5 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -398,7 +398,28 @@ making sure that you maintain a proper JSON format. { "propertyName": "Not null", "propertyKeyword": "required", - "propertyType": "checkbox" + "enableForReference": true, + "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": "Unique", @@ -802,7 +823,28 @@ making sure that you maintain a proper JSON format. { "propertyName": "Not null", "propertyKeyword": "required", - "propertyType": "checkbox" + "enableForReference": true, + "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": "Unique", @@ -1135,7 +1177,28 @@ making sure that you maintain a proper JSON format. { "propertyName": "Not null", "propertyKeyword": "required", - "propertyType": "checkbox" + "enableForReference": true, + "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": "Unique", @@ -1487,7 +1550,28 @@ making sure that you maintain a proper JSON format. { "propertyName": "Not null", "propertyKeyword": "required", - "propertyType": "checkbox" + "enableForReference": true, + "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": "Unique", @@ -1835,7 +1919,28 @@ making sure that you maintain a proper JSON format. { "propertyName": "Not null", "propertyKeyword": "required", - "propertyType": "checkbox" + "enableForReference": true, + "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": "Unique", @@ -2237,7 +2342,28 @@ making sure that you maintain a proper JSON format. { "propertyName": "Not null", "propertyKeyword": "required", - "propertyType": "checkbox" + "enableForReference": true, + "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": "Unique",