Skip to content

Conversation

andybharness
Copy link
Contributor

@andybharness andybharness commented Apr 17, 2024

FFM-11241 - Target v2: Adding support for AND/OR in clauses

What
Adding support for processing the new GroupServingRule in Segment. Also update API definition for OpenAPIGenerator plugin. The default behaviour now is to check for the existence of GroupServingRule if found then we ignore the old Rules section. Old Rules section will continue to work to aid transition if GroupServingRule is not yet populated. Each entry in GroupServingRule is ORed while each list of clauses is ANDed. The GroupServingRule with the highest priority used first to allow reordering on the backend.

Why
This give the customer more flexibility on how they configure their rules in the backend.

Testing
Initial unit tests for now + testgrid later

What
Adding support for processing the new `GroupServingRule` in `Segment`. Also update API definition for OpenAPIGenerator plugin.
The default behaviour now is to check for the existence of `GroupServingRule` if found then we ignore the old `Rules` section.
Old `Rules` section will continue to work to aid transition if `GroupServingRule` is not yet populated.
Each entry in `GroupServingRule` is ORed while each list of clauses is ANDed. The `GroupServingRule` with the highest priority
used first to allow reordering on the backend.

Why
This give the customer more flexibility on how they configure their rules in the backend.

Testing
Initial unit tests for now + testgrid later
@andybharness andybharness merged commit 4dc80d0 into main Apr 17, 2024
@andybharness andybharness deleted the FFM-11241-and-or-operator-support branch April 17, 2024 10:42
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