Example for "Manual Trigger for Bundle Reload" seems incomplete #710
Unanswered
victoraugustolls
asked this question in
OPA and Rego
Replies: 1 comment 1 reply
-
hello @anderseknert ! Do you mind sharing your thoughts here? If you are not the right person to tag, I'm sorry! And if thats the case, can you point me to the right person? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have the need to use manual reload for bundles in my application, as I need to sync its reload with other tasks, and I noticed a behavior with the example that makes me think that it is incomplete, so I decided to open as a discussion to see if thats expected or a bug. If it is a bug, I can open an issue.
The example can be found here, but the code is:
The issue is that the error returned by
bundle.Trigger(ctx)
can be nil and at the same time the bundle was not loaded. This happens because if there's anast
error, the parser fails internally, the error status is set on the "bundle" plugin status, but no error is returned. I know one can get the error by registering a listener in the bundle plugin, but the example is a little bit misleading because either:You can find the error status being set here.
Beta Was this translation helpful? Give feedback.
All reactions