Skip to content

Commit 00d80e3

Browse files
authored
HCK-10812: Add Alternate Keys to SQL-like targets (#49)
<!--do not remove this marker, its needed to replace info when ticket title is updated --> <!--jira-description-action-hidden-marker-start--> <table> <td> <a href="https://hackolade.atlassian.net/browse/HCK-10812" title="HCK-10812" target="_blank"><img alt="Sub-task" src="https://hackolade.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10316?size=medium" />HCK-10812</a> Refine Alternate keys in other RDMS targets </td></table> <br /> <!--jira-description-action-hidden-marker-end-->
1 parent ab812a7 commit 00d80e3

3 files changed

Lines changed: 276 additions & 4 deletions

File tree

central_pane/style.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@
4242
}
4343
],
4444
"indexes",
45+
{
46+
"value": "AK",
47+
"orderingNumbersBy": ["uniqueKey", "compositeUniqueKey"],
48+
"dependency": {
49+
"key": "alternateKey",
50+
"value": true
51+
},
52+
"width": 16
53+
},
4554
"refType"
4655
]
4756
}

properties_pane/entity_level/entityLevelConfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ making sure that you maintain a proper JSON format.
383383
"templateOptions": {
384384
"editorDialect": "markdown"
385385
}
386+
},
387+
{
388+
"propertyName": "Alternate key",
389+
"propertyKeyword": "alternateKey",
390+
"propertyTooltip": "",
391+
"propertyType": "checkbox",
392+
"setFieldPropertyBy": "compositeUniqueKey"
386393
}
387394
]
388395
}

properties_pane/field_level/fieldLevelConfig.json

Lines changed: 260 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,32 @@ making sure that you maintain a proper JSON format.
870870
}
871871
]
872872
},
873+
{
874+
"propertyName": "Alternate Key",
875+
"propertyKeyword": "alternateKey",
876+
"defaultValue": false,
877+
"enableForReference": true,
878+
"propertyType": "checkbox",
879+
"dependency": {
880+
"type": "or",
881+
"values": [
882+
{
883+
"key": "unique",
884+
"value": true
885+
},
886+
{
887+
"key": "compositeUniqueKey",
888+
"value": true
889+
}
890+
]
891+
},
892+
"disabledOnCondition": [
893+
{
894+
"key": "compositeUniqueKey",
895+
"value": true
896+
}
897+
]
898+
},
873899
"foreignCollection",
874900
"foreignField",
875901
"relationshipType",
@@ -1601,6 +1627,32 @@ making sure that you maintain a proper JSON format.
16011627
}
16021628
]
16031629
},
1630+
{
1631+
"propertyName": "Alternate Key",
1632+
"propertyKeyword": "alternateKey",
1633+
"defaultValue": false,
1634+
"enableForReference": true,
1635+
"propertyType": "checkbox",
1636+
"dependency": {
1637+
"type": "or",
1638+
"values": [
1639+
{
1640+
"key": "unique",
1641+
"value": true
1642+
},
1643+
{
1644+
"key": "compositeUniqueKey",
1645+
"value": true
1646+
}
1647+
]
1648+
},
1649+
"disabledOnCondition": [
1650+
{
1651+
"key": "compositeUniqueKey",
1652+
"value": true
1653+
}
1654+
]
1655+
},
16041656
"foreignCollection",
16051657
"foreignField",
16061658
"relationshipType",
@@ -2156,6 +2208,32 @@ making sure that you maintain a proper JSON format.
21562208
}
21572209
]
21582210
},
2211+
{
2212+
"propertyName": "Alternate Key",
2213+
"propertyKeyword": "alternateKey",
2214+
"defaultValue": false,
2215+
"enableForReference": true,
2216+
"propertyType": "checkbox",
2217+
"dependency": {
2218+
"type": "or",
2219+
"values": [
2220+
{
2221+
"key": "unique",
2222+
"value": true
2223+
},
2224+
{
2225+
"key": "compositeUniqueKey",
2226+
"value": true
2227+
}
2228+
]
2229+
},
2230+
"disabledOnCondition": [
2231+
{
2232+
"key": "compositeUniqueKey",
2233+
"value": true
2234+
}
2235+
]
2236+
},
21592237
"pattern",
21602238
{
21612239
"fieldKeyword": "default",
@@ -2339,6 +2417,32 @@ making sure that you maintain a proper JSON format.
23392417
"templateOptions": {
23402418
"editorDialect": "markdown"
23412419
}
2420+
},
2421+
{
2422+
"propertyName": "Alternate Key",
2423+
"propertyKeyword": "alternateKey",
2424+
"defaultValue": false,
2425+
"enableForReference": true,
2426+
"propertyType": "checkbox",
2427+
"dependency": {
2428+
"type": "or",
2429+
"values": [
2430+
{
2431+
"key": "unique",
2432+
"value": true
2433+
},
2434+
{
2435+
"key": "compositeUniqueKey",
2436+
"value": true
2437+
}
2438+
]
2439+
},
2440+
"disabledOnCondition": [
2441+
{
2442+
"key": "compositeUniqueKey",
2443+
"value": true
2444+
}
2445+
]
23422446
}
23432447
],
23442448
"boolean": [
@@ -2363,6 +2467,32 @@ making sure that you maintain a proper JSON format.
23632467
"enableForReference": true,
23642468
"propertyType": "checkbox"
23652469
},
2470+
{
2471+
"propertyName": "Alternate Key",
2472+
"propertyKeyword": "alternateKey",
2473+
"defaultValue": false,
2474+
"enableForReference": true,
2475+
"propertyType": "checkbox",
2476+
"dependency": {
2477+
"type": "or",
2478+
"values": [
2479+
{
2480+
"key": "unique",
2481+
"value": true
2482+
},
2483+
{
2484+
"key": "compositeUniqueKey",
2485+
"value": true
2486+
}
2487+
]
2488+
},
2489+
"disabledOnCondition": [
2490+
{
2491+
"key": "compositeUniqueKey",
2492+
"value": true
2493+
}
2494+
]
2495+
},
23662496
"default",
23672497
"sample",
23682498
{
@@ -2592,6 +2722,32 @@ making sure that you maintain a proper JSON format.
25922722
"addTimestampButton": true,
25932723
"propertyType": "details",
25942724
"template": "textarea"
2725+
},
2726+
{
2727+
"propertyName": "Alternate Key",
2728+
"propertyKeyword": "alternateKey",
2729+
"defaultValue": false,
2730+
"enableForReference": true,
2731+
"propertyType": "checkbox",
2732+
"dependency": {
2733+
"type": "or",
2734+
"values": [
2735+
{
2736+
"key": "unique",
2737+
"value": true
2738+
},
2739+
{
2740+
"key": "compositeUniqueKey",
2741+
"value": true
2742+
}
2743+
]
2744+
},
2745+
"disabledOnCondition": [
2746+
{
2747+
"key": "compositeUniqueKey",
2748+
"value": true
2749+
}
2750+
]
25952751
}
25962752
],
25972753
"___0": [],
@@ -2671,6 +2827,32 @@ making sure that you maintain a proper JSON format.
26712827
"templateOptions": {
26722828
"editorDialect": "markdown"
26732829
}
2830+
},
2831+
{
2832+
"propertyName": "Alternate Key",
2833+
"propertyKeyword": "alternateKey",
2834+
"defaultValue": false,
2835+
"enableForReference": true,
2836+
"propertyType": "checkbox",
2837+
"dependency": {
2838+
"type": "or",
2839+
"values": [
2840+
{
2841+
"key": "unique",
2842+
"value": true
2843+
},
2844+
{
2845+
"key": "compositeUniqueKey",
2846+
"value": true
2847+
}
2848+
]
2849+
},
2850+
"disabledOnCondition": [
2851+
{
2852+
"key": "compositeUniqueKey",
2853+
"value": true
2854+
}
2855+
]
26742856
}
26752857
],
26762858
"multiset": [
@@ -2799,6 +2981,32 @@ making sure that you maintain a proper JSON format.
27992981
"templateOptions": {
28002982
"editorDialect": "markdown"
28012983
}
2984+
},
2985+
{
2986+
"propertyName": "Alternate Key",
2987+
"propertyKeyword": "alternateKey",
2988+
"defaultValue": false,
2989+
"enableForReference": true,
2990+
"propertyType": "checkbox",
2991+
"dependency": {
2992+
"type": "or",
2993+
"values": [
2994+
{
2995+
"key": "unique",
2996+
"value": true
2997+
},
2998+
{
2999+
"key": "compositeUniqueKey",
3000+
"value": true
3001+
}
3002+
]
3003+
},
3004+
"disabledOnCondition": [
3005+
{
3006+
"key": "compositeUniqueKey",
3007+
"value": true
3008+
}
3009+
]
28023010
}
28033011
],
28043012
"___1": [],
@@ -2902,6 +3110,32 @@ making sure that you maintain a proper JSON format.
29023110
"templateOptions": {
29033111
"editorDialect": "markdown"
29043112
}
3113+
},
3114+
{
3115+
"propertyName": "Alternate Key",
3116+
"propertyKeyword": "alternateKey",
3117+
"defaultValue": false,
3118+
"enableForReference": true,
3119+
"propertyType": "checkbox",
3120+
"dependency": {
3121+
"type": "or",
3122+
"values": [
3123+
{
3124+
"key": "unique",
3125+
"value": true
3126+
},
3127+
{
3128+
"key": "compositeUniqueKey",
3129+
"value": true
3130+
}
3131+
]
3132+
},
3133+
"disabledOnCondition": [
3134+
{
3135+
"key": "compositeUniqueKey",
3136+
"value": true
3137+
}
3138+
]
29053139
}
29063140
],
29073141
"rowid": [
@@ -3387,13 +3621,35 @@ making sure that you maintain a proper JSON format.
33873621
}
33883622
]
33893623
},
3390-
3624+
{
3625+
"propertyName": "Alternate Key",
3626+
"propertyKeyword": "alternateKey",
3627+
"defaultValue": false,
3628+
"enableForReference": true,
3629+
"propertyType": "checkbox",
3630+
"dependency": {
3631+
"type": "or",
3632+
"values": [
3633+
{
3634+
"key": "unique",
3635+
"value": true
3636+
},
3637+
{
3638+
"key": "compositeUniqueKey",
3639+
"value": true
3640+
}
3641+
]
3642+
},
3643+
"disabledOnCondition": [
3644+
{
3645+
"key": "compositeUniqueKey",
3646+
"value": true
3647+
}
3648+
]
3649+
},
33913650
"foreignCollection",
3392-
33933651
"foreignField",
3394-
33953652
"relationshipType",
3396-
33973653
"relationshipName",
33983654
"cardinality",
33993655
"pattern",

0 commit comments

Comments
 (0)