Skip to content

Commit

Permalink
field single PK and UK should be mutually exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
taras-dubyk committed Oct 3, 2024
1 parent 33dc70e commit feda649
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 21 deletions.
58 changes: 58 additions & 0 deletions adapter/0.2.7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* Copyright © 2016-2018 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* {
* "add": {
* "entity": [<names of new property>],
* "container": [<names of new property>],
* "model": [<names of new property>],
* "view": [<names of new property>],
* "field": {
* "<type>": [<names of new property>]
* }
* },
* "delete": {
* "entity": [<names of new property>],
* "container": [<names of new property>],
* "model": [<names of new property>],
* "view": [<names of new property>],
* "field": {
* "<type>": [<names of new property>]
* }
* },
* "modify": {
* "entity": [
* {
* "from": { <properties that identify record> },
* "to": { <properties that need to be changed> }
* }
* ],
* "container": [],
* "model": [],
* "view": [],
* "field": []
* },
* }
*/
{
"add": {},
"modify": {
"field": [
{
"from": {
"primaryKey": true,
"unique": true
},
"to": {
"unique": false
}
}
]
},
"delete": {}
}
154 changes: 133 additions & 21 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,13 @@ making sure that you maintain a proper JSON format.
]
}
]
},
{
"type": "not",
"values": {
"key": "unique",
"value": true
}
}
]
}
Expand Down Expand Up @@ -445,12 +452,21 @@ making sure that you maintain a proper JSON format.
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
"type": "or",
"values": [
{
"key": "primaryKey",
"value": false
},
{
"key": "primaryKey",
"exist": false
}
]
},
{
"key": "compositePrimaryKey",
"exist": false
"value": true
}
]
},
Expand Down Expand Up @@ -807,6 +823,13 @@ making sure that you maintain a proper JSON format.
]
}
]
},
{
"type": "not",
"values": {
"key": "unique",
"value": true
}
}
]
}
Expand Down Expand Up @@ -870,12 +893,21 @@ making sure that you maintain a proper JSON format.
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
"type": "or",
"values": [
{
"key": "primaryKey",
"value": false
},
{
"key": "primaryKey",
"exist": false
}
]
},
{
"key": "compositePrimaryKey",
"exist": false
"value": true
}
]
},
Expand Down Expand Up @@ -1161,6 +1193,13 @@ making sure that you maintain a proper JSON format.
]
}
]
},
{
"type": "not",
"values": {
"key": "unique",
"value": true
}
}
]
}
Expand Down Expand Up @@ -1224,12 +1263,21 @@ making sure that you maintain a proper JSON format.
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
"type": "or",
"values": [
{
"key": "primaryKey",
"value": false
},
{
"key": "primaryKey",
"exist": false
}
]
},
{
"key": "compositePrimaryKey",
"exist": false
"value": true
}
]
},
Expand Down Expand Up @@ -1534,6 +1582,13 @@ making sure that you maintain a proper JSON format.
]
}
]
},
{
"type": "not",
"values": {
"key": "unique",
"value": true
}
}
]
}
Expand Down Expand Up @@ -1597,12 +1652,21 @@ making sure that you maintain a proper JSON format.
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
"type": "or",
"values": [
{
"key": "primaryKey",
"value": false
},
{
"key": "primaryKey",
"exist": false
}
]
},
{
"key": "compositePrimaryKey",
"exist": false
"value": true
}
]
},
Expand Down Expand Up @@ -1903,6 +1967,13 @@ making sure that you maintain a proper JSON format.
]
}
]
},
{
"type": "not",
"values": {
"key": "unique",
"value": true
}
}
]
}
Expand Down Expand Up @@ -1966,12 +2037,21 @@ making sure that you maintain a proper JSON format.
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
"type": "or",
"values": [
{
"key": "primaryKey",
"value": false
},
{
"key": "primaryKey",
"exist": false
}
]
},
{
"key": "compositePrimaryKey",
"exist": false
"value": true
}
]
},
Expand Down Expand Up @@ -2326,6 +2406,13 @@ making sure that you maintain a proper JSON format.
]
}
]
},
{
"type": "not",
"values": {
"key": "unique",
"value": true
}
}
]
}
Expand Down Expand Up @@ -2389,12 +2476,21 @@ making sure that you maintain a proper JSON format.
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
"type": "or",
"values": [
{
"key": "primaryKey",
"value": false
},
{
"key": "primaryKey",
"exist": false
}
]
},
{
"key": "compositePrimaryKey",
"exist": false
"value": true
}
]
},
Expand Down Expand Up @@ -3236,6 +3332,13 @@ making sure that you maintain a proper JSON format.
]
}
]
},
{
"type": "not",
"values": {
"key": "unique",
"value": true
}
}
]
}
Expand Down Expand Up @@ -3278,12 +3381,21 @@ making sure that you maintain a proper JSON format.
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
"type": "or",
"values": [
{
"key": "primaryKey",
"value": false
},
{
"key": "primaryKey",
"exist": false
}
]
},
{
"key": "compositePrimaryKey",
"exist": false
"value": true
}
]
},
Expand Down

0 comments on commit feda649

Please sign in to comment.