Skip to content

Helper DeclareContextProto to extend CEL environment - #446

Merged
TristonianJones merged 1 commit into
cel-expr:masterfrom
hickford:declare-context-proto
Aug 18, 2021
Merged

Helper DeclareContextProto to extend CEL environment#446
TristonianJones merged 1 commit into
cel-expr:masterfrom
hickford:declare-context-proto

Conversation

@hickford

Copy link
Copy Markdown
Contributor

Helper DeclareContextProto to extend CEL environment with declarations from the given context proto. Each field of the proto defines a variable of the same name in the environment (https://github.com/google/cel-spec/blob/master/doc/langdef.md#evaluation-environment).

TESTED=bazel test ...

@hickford
hickford marked this pull request as draft August 12, 2021 10:47
@hickford
hickfordforce-pushed the declare-context-proto branch from 9dfa0b7 to 0d6d873CompareAugust 12, 2021 10:57
@hickford
hickford marked this pull request as ready for review August 12, 2021 10:58
@hickford

Copy link
Copy Markdown
ContributorAuthor

@TristonianJones Here's the review discussed elsewhere

@TristonianJones

Copy link
Copy Markdown
Collaborator

/gcbrun

Comment threadcel/options.go Outdated
Comment threadcel/options.go Outdated
Comment threadcel/options.go Outdated
Comment threadcel/cel_test.go Outdated
@hickford
hickfordforce-pushed the declare-context-proto branch 2 times, most recently from f12979e to 72baebcCompareAugust 13, 2021 10:28
@hickford

Copy link
Copy Markdown
ContributorAuthor

Thanks for your comments. Ready for review again.

@TristonianJones

Copy link
Copy Markdown
Collaborator

/gcbrun

Comment threadcel/cel_test.go Outdated
Comment threadcel/cel_test.go Outdated
Comment threadcel/options.go Outdated
Comment threadcel/options.go Outdated
Comment threadcel/options.go Outdated
Comment threadcel/options.go Outdated
Comment threadcel/testdata/testprotovalue.proto Outdated
@hickford
hickfordforce-pushed the declare-context-proto branch from 72baebc to abbf264CompareAugust 16, 2021 11:41
@hickford

Copy link
Copy Markdown
ContributorAuthor

Thanks again, ready.

…s from the given context proto. Each field of the proto defines a variable of the same name in the environment (https://github.com/google/cel-spec/blob/master/doc/langdef.md#evaluation-environment).
TESTED=bazel build ... && bazel test ...
@hickford
hickfordforce-pushed the declare-context-proto branch from abbf264 to 97c5bc4CompareAugust 16, 2021 13:26
@TristonianJones

Copy link
Copy Markdown
Collaborator

/gcbrun

Sign up for freeto 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

@hickford@TristonianJones