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

[FFM-11241] - Target v2: Adding support for AND/OR in clauses #37

Merged
merged 2 commits into from
Apr 17, 2024

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
1 check passed
@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