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

Simplified partial state evaluation #766

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

TristonianJones
Copy link
Collaborator

Introduce the PartialVars method on cel.Env which allows users to
assume that any variable which has been declared in the environment,
but which has not been specified in the input Activation is unknown.

This fixes a usability issue with the cel.PartialVars method which expects
unknown patterns to be manually configured rather than inferred from
context.

@TristonianJones TristonianJones marked this pull request as ready for review July 6, 2023 22:47
cel/env.go Show resolved Hide resolved
@TristonianJones TristonianJones merged commit be7c138 into google:master Jul 14, 2023
2 checks passed
@TristonianJones TristonianJones deleted the partial-vars-env branch July 14, 2023 20:48
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.

2 participants