Skip to content

Support for splitting nested branching operators within policies#1136

Merged
TristonianJones merged 6 commits into
cel-expr:masterfrom
TristonianJones:policy-match-split
Feb 25, 2025
Merged

Support for splitting nested branching operators within policies#1136
TristonianJones merged 6 commits into
cel-expr:masterfrom
TristonianJones:policy-match-split

Conversation

@TristonianJones

Copy link
Copy Markdown
Collaborator

Introduce support for splitting nested match blocks according to a configurable height limit.

When expressions are more than 25 levels deep, logical AND, logical OR, and conditional operators
will automatically be split into local variables within a cel.@block. This depth is configurable
in the event that a different limit is desired.

Comment thread common/ast/ast.go
Comment thread policy/composer.go Outdated
Comment thread policy/composer.go
Comment thread policy/composer.go
@TristonianJones TristonianJones merged commit 9855c70 into cel-expr:master Feb 25, 2025
@TristonianJones TristonianJones deleted the policy-match-split branch February 25, 2025 22:15
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