Skip to content

Commit

Permalink
fix: extend acs-client to validate multiple matching entities and ins…
Browse files Browse the repository at this point in the history
…tances for a given subject
  • Loading branch information
Arun-KumarH committed Apr 21, 2024
1 parent e603be4 commit b7c4bc5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 42 deletions.
11 changes: 6 additions & 5 deletions filter_ownership.aql
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ let meta = node.meta
let owner = meta.owners
let found = (
for o in owner
filter o.id == "urn:restorecommerce:acs:names:ownerIndicatoryEntity" && o.value == @entity
let nestedAttributes = o.attributes
for ownerInst in nestedAttributes
filter ownerInst.id == "urn:restorecommerce:acs:names:ownerInstance" && ownerInst.value in @instance
return true
for arg in @customArguments
filter o.id == "urn:restorecommerce:acs:names:ownerIndicatoryEntity" && o.value == arg.entity
let nestedAttributes = o.attributes
for ownerInst in nestedAttributes
filter ownerInst.id == "urn:restorecommerce:acs:names:ownerInstance" && ownerInst.value in arg.instance
return true
)
filter true in found
70 changes: 36 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
],
"type": "module",
"dependencies": {
"@restorecommerce/acs-client": "^1.5.1",
"@restorecommerce/chassis-srv": "^1.5.0",
"@restorecommerce/acs-client": "^1.6.0",
"@restorecommerce/chassis-srv": "^1.6.0",
"@restorecommerce/cluster-service": "^1.0.3",
"@restorecommerce/grpc-client": "^2.2.1",
"@restorecommerce/kafka-client": "^1.2.1",
"@restorecommerce/rc-grpc-clients": "^5.1.23",
"@restorecommerce/resource-base-interface": "^1.5.0",
"@restorecommerce/resource-base-interface": "^1.6.0",
"@restorecommerce/service-config": "^1.0.12",
"lodash-es": "^4.17.21",
"redis": "^4.6.13",
Expand Down

0 comments on commit b7c4bc5

Please sign in to comment.