Using with
to call another policy?
#245
Replies: 1 comment 5 replies
-
Without diving into the source code on a Friday night (😅), I'm guessing that caching the reslut of rule evaluation is omitted when There are definitely a few use cases for I would however think that repeated requests to evaluate the same rule over and over, and with the exact same data provided by |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried to cross call policy A from another policy B by using
with
to override data. It works but I noticed that evaluation of policy A is done multiple times without reusing already calculated rule values. Is it for purpose or is it some bug?Can
with
be used in regular policy logic or is it to be used only in tests?Minimal example: https://play.openpolicyagent.org/p/pDWR20IyuA
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions