Skip to content

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.

3 participants