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-2217]: Evaluation returning wrong result with multiple segments #70

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

davejohnston
Copy link
Contributor

What:

Segments evaluation had two problems:

  1. It returned false if any segment evaluate returned false (even if segment was not part of the clause)
  2. It evaluated the target in segmentMatch clause against all segments, where it should only evaluate against
    the segments defined by the clause.

Evaluation Percentage Rollout was also distributing values incorrectly when there were more than
two variations.

Testing

Updated unit tests to ensure segment Evaluation performed as expected

…oups

Segments evaluation had two problems:
 1) It returned false if any segment evaluate returned false (even if segment was not part of the clause)
 2) It evaluated the target in segmentMatch clause against all segments, where it should only evaluate against
   the segments defined by the clause.

Evaluation Percentage Rollout was also distributing values incorrectly when there were more than
two variations.

Updated unit tests to ensure segment Evaluation performed as expected
Copy link
Contributor

@enver-bisevac enver-bisevac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davejohnston davejohnston merged commit 57581b5 into harness:main Feb 1, 2022
@davejohnston davejohnston deleted the FFM-2217 branch February 1, 2022 08:19
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.

None yet

3 participants