Skip to content

Commit 91efd68

Browse files
authored
HCK-10812: Refine Alternate keys in other RDMS targets (#170)
1 parent 9c29ccc commit 91efd68

File tree

3 files changed

+257
-0
lines changed

3 files changed

+257
-0
lines changed

central_pane/style.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,21 @@
33
"erd": {
44
"width": 300
55
}
6+
},
7+
"field": {
8+
"erd": [
9+
"keys",
10+
"type",
11+
"indexes",
12+
{
13+
"value": "AK",
14+
"orderingNumbersBy": ["uniqueKey", "compositeUniqueKey"],
15+
"dependency": {
16+
"key": "alternateKey",
17+
"value": true
18+
},
19+
"width": 16
20+
}
21+
]
622
}
723
}

properties_pane/entity_level/entityLevelConfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,13 @@ making sure that you maintain a proper JSON format.
973973
"template": "collectiontree",
974974
"isCompositeKey": true,
975975
"abbr": " "
976+
},
977+
{
978+
"propertyName": "Alternate key",
979+
"propertyKeyword": "alternateKey",
980+
"propertyTooltip": "",
981+
"propertyType": "checkbox",
982+
"setFieldPropertyBy": "compositeUniqueKey"
976983
}
977984
]
978985
}

properties_pane/field_level/fieldLevelConfig.json

Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,32 @@ making sure that you maintain a proper JSON format.
15851585
}
15861586
]
15871587
},
1588+
{
1589+
"propertyName": "Alternate Key",
1590+
"propertyKeyword": "alternateKey",
1591+
"defaultValue": false,
1592+
"enableForReference": true,
1593+
"propertyType": "checkbox",
1594+
"dependency": {
1595+
"type": "or",
1596+
"values": [
1597+
{
1598+
"key": "unique",
1599+
"value": true
1600+
},
1601+
{
1602+
"key": "compositeUniqueKey",
1603+
"value": true
1604+
}
1605+
]
1606+
},
1607+
"disabledOnCondition": [
1608+
{
1609+
"key": "compositeUniqueKey",
1610+
"value": true
1611+
}
1612+
]
1613+
},
15881614
{
15891615
"fieldKeyword": "foreignCollection",
15901616
"dependency": {
@@ -3413,6 +3439,32 @@ making sure that you maintain a proper JSON format.
34133439
}
34143440
]
34153441
},
3442+
{
3443+
"propertyName": "Alternate Key",
3444+
"propertyKeyword": "alternateKey",
3445+
"defaultValue": false,
3446+
"enableForReference": true,
3447+
"propertyType": "checkbox",
3448+
"dependency": {
3449+
"type": "or",
3450+
"values": [
3451+
{
3452+
"key": "unique",
3453+
"value": true
3454+
},
3455+
{
3456+
"key": "compositeUniqueKey",
3457+
"value": true
3458+
}
3459+
]
3460+
},
3461+
"disabledOnCondition": [
3462+
{
3463+
"key": "compositeUniqueKey",
3464+
"value": true
3465+
}
3466+
]
3467+
},
34163468
{
34173469
"fieldKeyword": "foreignCollection",
34183470
"dependency": {
@@ -5299,6 +5351,32 @@ making sure that you maintain a proper JSON format.
52995351
}
53005352
]
53015353
},
5354+
{
5355+
"propertyName": "Alternate Key",
5356+
"propertyKeyword": "alternateKey",
5357+
"defaultValue": false,
5358+
"enableForReference": true,
5359+
"propertyType": "checkbox",
5360+
"dependency": {
5361+
"type": "or",
5362+
"values": [
5363+
{
5364+
"key": "unique",
5365+
"value": true
5366+
},
5367+
{
5368+
"key": "compositeUniqueKey",
5369+
"value": true
5370+
}
5371+
]
5372+
},
5373+
"disabledOnCondition": [
5374+
{
5375+
"key": "compositeUniqueKey",
5376+
"value": true
5377+
}
5378+
]
5379+
},
53025380
{
53035381
"fieldKeyword": "pattern",
53045382
"dependency": {
@@ -6457,6 +6535,32 @@ making sure that you maintain a proper JSON format.
64576535
"addTimestampButton": true,
64586536
"propertyType": "details",
64596537
"template": "textarea"
6538+
},
6539+
{
6540+
"propertyName": "Alternate Key",
6541+
"propertyKeyword": "alternateKey",
6542+
"defaultValue": false,
6543+
"enableForReference": true,
6544+
"propertyType": "checkbox",
6545+
"dependency": {
6546+
"type": "or",
6547+
"values": [
6548+
{
6549+
"key": "unique",
6550+
"value": true
6551+
},
6552+
{
6553+
"key": "compositeUniqueKey",
6554+
"value": true
6555+
}
6556+
]
6557+
},
6558+
"disabledOnCondition": [
6559+
{
6560+
"key": "compositeUniqueKey",
6561+
"value": true
6562+
}
6563+
]
64606564
}
64616565
],
64626566
"json": [
@@ -7125,6 +7229,32 @@ making sure that you maintain a proper JSON format.
71257229
]
71267230
}
71277231
},
7232+
{
7233+
"propertyName": "Alternate Key",
7234+
"propertyKeyword": "alternateKey",
7235+
"defaultValue": false,
7236+
"enableForReference": true,
7237+
"propertyType": "checkbox",
7238+
"dependency": {
7239+
"type": "or",
7240+
"values": [
7241+
{
7242+
"key": "unique",
7243+
"value": true
7244+
},
7245+
{
7246+
"key": "compositeUniqueKey",
7247+
"value": true
7248+
}
7249+
]
7250+
},
7251+
"disabledOnCondition": [
7252+
{
7253+
"key": "compositeUniqueKey",
7254+
"value": true
7255+
}
7256+
]
7257+
},
71287258
{
71297259
"propertyName": "Default",
71307260
"propertyKeyword": "default",
@@ -8659,6 +8789,32 @@ making sure that you maintain a proper JSON format.
86598789
}
86608790
]
86618791
},
8792+
{
8793+
"propertyName": "Alternate Key",
8794+
"propertyKeyword": "alternateKey",
8795+
"defaultValue": false,
8796+
"enableForReference": true,
8797+
"propertyType": "checkbox",
8798+
"dependency": {
8799+
"type": "or",
8800+
"values": [
8801+
{
8802+
"key": "unique",
8803+
"value": true
8804+
},
8805+
{
8806+
"key": "compositeUniqueKey",
8807+
"value": true
8808+
}
8809+
]
8810+
},
8811+
"disabledOnCondition": [
8812+
{
8813+
"key": "compositeUniqueKey",
8814+
"value": true
8815+
}
8816+
]
8817+
},
86628818
{
86638819
"propertyName": "JSON key",
86648820
"propertyKeyword": "name",
@@ -9936,6 +10092,32 @@ making sure that you maintain a proper JSON format.
993610092
}
993710093
]
993810094
},
10095+
{
10096+
"propertyName": "Alternate Key",
10097+
"propertyKeyword": "alternateKey",
10098+
"defaultValue": false,
10099+
"enableForReference": true,
10100+
"propertyType": "checkbox",
10101+
"dependency": {
10102+
"type": "or",
10103+
"values": [
10104+
{
10105+
"key": "unique",
10106+
"value": true
10107+
},
10108+
{
10109+
"key": "compositeUniqueKey",
10110+
"value": true
10111+
}
10112+
]
10113+
},
10114+
"disabledOnCondition": [
10115+
{
10116+
"key": "compositeUniqueKey",
10117+
"value": true
10118+
}
10119+
]
10120+
},
993910121
{
994010122
"fieldKeyword": "foreignCollection",
994110123
"dependency": {
@@ -11836,6 +12018,32 @@ making sure that you maintain a proper JSON format.
1183612018
"propertyType": "details",
1183712019
"template": "textarea"
1183812020
},
12021+
{
12022+
"propertyName": "Alternate Key",
12023+
"propertyKeyword": "alternateKey",
12024+
"defaultValue": false,
12025+
"enableForReference": true,
12026+
"propertyType": "checkbox",
12027+
"dependency": {
12028+
"type": "or",
12029+
"values": [
12030+
{
12031+
"key": "unique",
12032+
"value": true
12033+
},
12034+
{
12035+
"key": "compositeUniqueKey",
12036+
"value": true
12037+
}
12038+
]
12039+
},
12040+
"disabledOnCondition": [
12041+
{
12042+
"key": "compositeUniqueKey",
12043+
"value": true
12044+
}
12045+
]
12046+
},
1183912047
"minProperties",
1184012048
"maxProperties"
1184112049
],
@@ -12516,6 +12724,32 @@ making sure that you maintain a proper JSON format.
1251612724
"addTimestampButton": true,
1251712725
"propertyType": "details",
1251812726
"template": "textarea"
12727+
},
12728+
{
12729+
"propertyName": "Alternate Key",
12730+
"propertyKeyword": "alternateKey",
12731+
"defaultValue": false,
12732+
"enableForReference": true,
12733+
"propertyType": "checkbox",
12734+
"dependency": {
12735+
"type": "or",
12736+
"values": [
12737+
{
12738+
"key": "unique",
12739+
"value": true
12740+
},
12741+
{
12742+
"key": "compositeUniqueKey",
12743+
"value": true
12744+
}
12745+
]
12746+
},
12747+
"disabledOnCondition": [
12748+
{
12749+
"key": "compositeUniqueKey",
12750+
"value": true
12751+
}
12752+
]
1251912753
}
1252012754
],
1252112755
"joinSubquery": [

0 commit comments

Comments
 (0)