We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
Policy:
package object.registry.record.qld_digital_twin import data.object.registry.record.has_permission import data.object.registry.record.esri_groups import data.object.registry.record.esri_owner import data.object.registry.record.esri_public import data.object.registry.record.admin_role import data.object.registry.record.dt_privilege_role read { admin_role } read { has_permission.read esri_groups } read { has_permission.read esri_owner } read { has_permission.read dt_privilege_role } read { esri_public } read { not input.object.registry.record["esri-access-control"] }
The following response:
{ "result": { "queries": [ [ { "index": 0, "terms": [ { "type": "ref", "value": [ { "type": "var", "value": "eq" } ] }, { "type": "ref", "value": [ { "type": "var", "value": "input" }, { "type": "string", "value": "object" }, { "type": "string", "value": "registry" }, { "type": "string", "value": "record" }, { "type": "string", "value": "esri-access-control" }, { "type": "string", "value": "access" } ] }, { "type": "string", "value": "public" } ] } ], [ { "index": 0, "negated": true, "terms": { "type": "ref", "value": [ { "type": "var", "value": "input" }, { "type": "string", "value": "object" }, { "type": "string", "value": "registry" }, { "type": "string", "value": "record" }, { "type": "string", "value": "esri-access-control" } ] } } ] ] } }
should be parsed correctly.
PS without Negation, default rule is required (But this require parsing support section).
default rule
support
package object.registry.record.qld_digital_twin import data.object.registry.record.has_permission import data.object.registry.record.esri_groups import data.object.registry.record.esri_owner import data.object.registry.record.esri_public import data.object.registry.record.admin_role import data.object.registry.record.dt_privilege_role import data.object.registry.record.has_access_control_aspect read { admin_role } read { has_permission.read esri_groups } read { has_permission.read esri_owner } read { has_permission.read dt_privilege_role } read { esri_public } read { has_access_control_aspect == false }
package object.registry.record default has_access_control_aspect = false has_access_control_aspect { input.object.registry.record["esri-access-control"] }
{ "result": { "queries": [ [ { "index": 0, "terms": [ { "type": "ref", "value": [ { "type": "var", "value": "eq" } ] }, { "type": "ref", "value": [ { "type": "var", "value": "input" }, { "type": "string", "value": "object" }, { "type": "string", "value": "registry" }, { "type": "string", "value": "record" }, { "type": "string", "value": "esri-access-control" }, { "type": "string", "value": "access" } ] }, { "type": "string", "value": "public" } ] } ], [ { "index": 0, "terms": [ { "type": "ref", "value": [ { "type": "var", "value": "eq" } ] }, { "type": "ref", "value": [ { "type": "var", "value": "data" }, { "type": "string", "value": "partial" }, { "type": "string", "value": "object" }, { "type": "string", "value": "registry" }, { "type": "string", "value": "record" }, { "type": "string", "value": "has_access_control_aspect" } ] }, { "type": "boolean", "value": false } ] } ] ], "support": [ { "package": { "path": [ { "type": "var", "value": "data" }, { "type": "string", "value": "partial" }, { "type": "string", "value": "object" }, { "type": "string", "value": "registry" }, { "type": "string", "value": "record" } ] }, "rules": [ { "head": { "name": "has_access_control_aspect", "value": { "type": "boolean", "value": true } }, "body": [ { "index": 0, "terms": { "type": "ref", "value": [ { "type": "var", "value": "input" }, { "type": "string", "value": "object" }, { "type": "string", "value": "registry" }, { "type": "string", "value": "record" }, { "type": "string", "value": "esri-access-control" } ] } } ] }, { "default": true, "head": { "name": "has_access_control_aspect", "value": { "type": "boolean", "value": false } }, "body": [ { "index": 0, "terms": { "type": "boolean", "value": true } } ] } ] } ] } }
The text was updated successfully, but these errors were encountered:
The new decision endpoint should support negation well: #3254
Sorry, something went wrong.
closed via PR: #3257
No branches or pull requests
Is your feature request related to a problem? Please describe.
Policy:
The following response:
should be parsed correctly.
The text was updated successfully, but these errors were encountered: