-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aggregation): be more strict about missing entities. better error…
… message
- Loading branch information
Gerald Baulig
committed
Sep 25, 2024
1 parent
f040de3
commit 25cb3a1
Showing
2 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
let found = ( | ||
for o in node.meta.owners | ||
filter o.id == "urn:restorecommerce:acs:names:ownerIndicatoryEntity" | ||
for arg in @customArguments | ||
filter o.value == arg.entity | ||
for ownerInst in o.attributes | ||
filter ownerInst.id == "urn:restorecommerce:acs:names:ownerInstance" | ||
filter ownerInst.value in arg.instance | ||
return true | ||
LET found = ( | ||
FOR o IN node.meta.owners | ||
FILTER o.id == "urn:restorecommerce:acs:names:ownerIndicatoryEntity" | ||
FOR arg IN @customArguments | ||
FILTER o.value == arg.entity | ||
FOR ownerInst IN o.attributes | ||
FILTER ownerInst.id == "urn:restorecommerce:acs:names:ownerInstance" | ||
FILTER ownerInst.value IN arg.instance | ||
RETURN TRUE | ||
) | ||
filter true in found | ||
FILTER TRUE IN found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters