Skip to content

Instantly share code, notes, and snippets.

@terary
Last active April 18, 2025 00:38
Show Gist options
  • Save terary/9065e458b4a00a441576166312c1f1df to your computer and use it in GitHub Desktop.
Save terary/9065e458b4a00a441576166312c1f1df to your computer and use it in GitHub Desktop.
{
"182513690": {
"parentId": "182513690",
"nodeContent": {
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690"
}
},
"182513690:0": {
"parentId": "182513690",
"nodeContent": {
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
}
}
},
"182513690:0:1": {
"parentId": "182513690:0",
"nodeContent": {
"operator": "equals",
"subjectId": "182513692",
"value": "Option1"
}
},
"182513690:0:2": {
"parentId": "182513690:0",
"nodeContent": {
"operator": "$and",
"directOwnerFieldId": "182513692",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
}
}
},
"182513690:0:2:3": {
"parentId": "182513690:0:2",
"nodeContent": {
"operator": "equals",
"subjectId": "182513690",
"value": "Option1"
}
},
"182513690:0:2:5": {
"parentId": "182513690:0:2",
"nodeContent": {
"directOwnerFieldId": "182513690",
"existingNodeId": "182513690:0",
"existingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:0"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"violatingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513692",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:0:2"
},
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:0"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"circularReferenceId": "17fb5234-843c-4fb5-8bd9-732edd0f9ec4",
"message": "Circular dependency detected for fieldId: '182513690'. We attempted to add ... maybe json, but encounter circular dependency. This path has already been added and therefore adding this path would create circular reference. (see circularReferenceId: '17fb5234-843c-4fb5-8bd9-732edd0f9ec4')"
}
},
"182513690:0:4": {
"parentId": "182513690:0",
"nodeContent": {
"directOwnerFieldId": "182513690",
"existingNodeId": "182513690:0",
"existingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:0"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"violatingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513692",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:0:2"
},
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:0"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"circularReferenceId": "17fb5234-843c-4fb5-8bd9-732edd0f9ec4",
"message": "Circular dependency detected for fieldId: '182513690'. This path already exists. So other logic attempted to add the path a second time.. THIS node is a sister node, it is not the actual circular reference. It is here to make it easier to find the circular reference. (see circularReferenceId: '17fb5234-843c-4fb5-8bd9-732edd0f9ec4')"
}
},
"182513690:6": {
"parentId": "182513690",
"nodeContent": {
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
}
}
},
"182513690:6:7": {
"parentId": "182513690:6",
"nodeContent": {
"operator": "equals",
"subjectId": "182513690",
"value": "Option1"
}
},
"182513690:6:8": {
"parentId": "182513690:6",
"nodeContent": {
"directOwnerFieldId": "182513690",
"existingNodeId": "182513690:6",
"existingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:6"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"violatingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:6"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"circularReferenceId": "e26f19c1-0850-4228-b943-7e122c4968b5",
"message": "Circular dependency detected for fieldId: '182513690'. This path already exists. So other logic attempted to add the path a second time.. THIS node is a sister node, it is not the actual circular reference. It is here to make it easier to find the circular reference. (see circularReferenceId: 'e26f19c1-0850-4228-b943-7e122c4968b5')"
}
},
"182513690:6:9": {
"parentId": "182513690:6",
"nodeContent": {
"directOwnerFieldId": "182513690",
"existingNodeId": "182513690:6",
"existingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:6"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"violatingPathToRoot": [
{
"operator": "$and",
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "Option1",
"fieldId": "182513690"
}
]
},
"nodeId": "182513690:6"
},
{
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690",
"nodeId": "182513690"
}
],
"circularReferenceId": "e26f19c1-0850-4228-b943-7e122c4968b5",
"message": "Circular dependency detected for fieldId: '182513690'. We attempted to add ... maybe json, but encounter circular dependency. This path has already been added and therefore adding this path would create circular reference. (see circularReferenceId: 'e26f19c1-0850-4228-b943-7e122c4968b5')"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment