Skip to content

Commit

Permalink
Merge pull request #28 from serhii-filonenko/master
Browse files Browse the repository at this point in the history
Feature/HCK-2752 add relationship properties to fields config
  • Loading branch information
Vitalii4as authored Jan 10, 2023
2 parents fe5679b + 7af7868 commit d2f1c51
Show file tree
Hide file tree
Showing 2 changed files with 355 additions and 0 deletions.
47 changes: 47 additions & 0 deletions adapter/0.1.44.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* Copyright © 2016-2023 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": []
* },
* }
*/

{
"modify": {
"field": [["setRelationshipPropertiesToField"]]
}
}
308 changes: 308 additions & 0 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,83 @@ making sure that you maintain a proper JSON format.
},
"enableForReference": true
},
{
"propertyName": "Foreign definition",
"propertyKeyword": "foreignCollection",
"template": "definitions",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "foreignField",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipType",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipName",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "cardinality",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyName": "xml",
"propertyType": "block",
Expand Down Expand Up @@ -555,6 +632,83 @@ making sure that you maintain a proper JSON format.
]},
"enableForReference": true
},
{
"propertyName": "Foreign definition",
"propertyKeyword": "foreignCollection",
"template": "definitions",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "foreignField",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipType",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipName",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "cardinality",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyName": "xml",
"propertyType": "block",
Expand Down Expand Up @@ -832,6 +986,83 @@ making sure that you maintain a proper JSON format.
},
"enableForReference": true
},
{
"propertyName": "Foreign definition",
"propertyKeyword": "foreignCollection",
"template": "definitions",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "foreignField",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipType",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipName",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "cardinality",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyName": "xml",
"propertyType": "block",
Expand Down Expand Up @@ -1036,6 +1267,83 @@ making sure that you maintain a proper JSON format.
"enableForReference": true
},
"default",
{
"propertyName": "Foreign definition",
"propertyKeyword": "foreignCollection",
"template": "definitions",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "foreignField",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipType",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "relationshipName",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyKeyword": "cardinality",
"disableForDefinitions": false,
"dependency": {
"type": "and",
"values": [
{
"level": "parent",
"key": "type",
"value": "definitions",
"inDepthParentSearch": true
}
]
}
},
{
"propertyName": "example",
"propertyKeyword": "sample",
Expand Down

0 comments on commit d2f1c51

Please sign in to comment.