Skip to content
New issue

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

default decision: differentiate between missing and undefined doc #5420

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

anderseknert
Copy link
Member

Since "document missing or undefined" caused confusion, we can be more helpful and report whether the default decision document is missing, or whether it's there but undefined. I would probably have preferred for undefined to just result in an empty/undefined result, but that'd be quite a breaking change at this point in time, so hopefully this can at least make things a little less convoluted.

Fixes #5344

Signed-off-by: Anders Eknert anders@eknert.com

Since "document missing or undefined" caused confusion, we can be
more helpful and report whether the default decision document is
missing, or whether it's there but undefined. I would probably have
preferred for undefined to just result in an empty/undefined result,
but that'd be quite a breaking change at this point in time, so
hopefully this can at least make things a little less convoluted.

Fixes open-policy-agent#5344

Signed-off-by: Anders Eknert <anders@eknert.com>
@srenatus srenatus merged commit 518507b into open-policy-agent:main Nov 29, 2022
@srenatus srenatus deleted the 5344 branch November 29, 2022 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using an "input" attribute for default decision queries results in "undefined_document" error
2 participants