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-1251]: Rules for flags added directly to segment not working #36

Merged
merged 3 commits into from
Aug 16, 2021

Conversation

davejohnston
Copy link
Contributor

What:
Append segments from the target segment variation map, to the list of segments
that should be loaded by a feature config.

Why:
There are two ways to add a segment to a flag.

  1. From segments added through flag rules
  2. From segments in the variation target map.

The first use-case worked, because we parse the rules and create a list of segments to load
from the cache, prior to evaluating rules.
The second use-case did not work, as we didn't append segments from the variation target map
in the list.

What:
Append segments from the target segment variation map, to the list of segments
that should be loaded by a feature config.

Why:
There are two ways to add a segment to a flag.

1) From segments added through flag rules
2) From segments in the variation target map.

The first use-case worked, because we parse the rules and create a list of segments to load
from the cache, prior to evaluating rules.
The second use-case did not work, as we didn't append segments from the variation target map
in the list.
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.

It would be nice if we can have test for this use case

@davejohnston davejohnston merged commit 073717e into harness:main Aug 16, 2021
@davejohnston davejohnston deleted the FFM-1251 branch August 16, 2021 15:48
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

2 participants