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

fix: when using multiple strategies some of them might not be evaluated #211

Merged
merged 6 commits into from
Sep 4, 2023

Conversation

gastonfournier
Copy link
Contributor

@gastonfournier gastonfournier commented Sep 4, 2023

About the changes

The code selecting an activation strategy was exiting on a first enable match but the strategy being enabled does not mean the feature will be enabled. We need to iterate and evaluate each one of the strategies before returning.

Closes #210

@gastonfournier gastonfournier changed the title Fix/multiple strategies fix: when using multiple strategies some of them might not be evaluated Sep 4, 2023
@gastonfournier gastonfournier self-assigned this Sep 4, 2023
Copy link
Contributor

@gardleopard gardleopard left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

G

@gastonfournier gastonfournier merged commit 2a2d17b into main Sep 4, 2023
4 of 5 checks passed
@gastonfournier gastonfournier deleted the fix/multiple-strategies branch September 4, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Strategy check return only the first enabled
3 participants