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: evaluate variables overridden from rules with no variations #52

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

polok
Copy link
Contributor

@polok polok commented Oct 26, 2023

What was the bug

When matching both the Traffic (rule equivalent in generated datafiles) and their Allocation, it used to always check if an Allocation is found or not in the Traffic itself.

This was problematic because not all features have variations.

Resulting into issues when evaluating variables (in features with no variations) which have overrides from rule level, because SDK never found any allocation info for them (since they had no variations).

What was done to solve it

When matching both Traffic and Allocation, it will return:

Traffic if segments matched (irrespective of Allocation bucket range checks), and
Allocation if bucket range checks are satisfied

@polok polok requested a review from a team as a code owner October 26, 2023 11:10
@fahad19
Copy link
Member

fahad19 commented Oct 26, 2023

Refs featurevisor/featurevisor#189

@polok polok merged commit 1609228 into main Oct 26, 2023
1 check passed
@polok polok deleted the var-from-rules branch October 26, 2023 11:17
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