-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR fixes a bug in how we use fallback variants in this SDK. The fallback should be used when there is no flag, when the flag doesn't have any variants, and if the flag has variants, but is disabled. However, prior to this, it was only used if the flag didn't exist. It addresses the issues in and closes #160. * fix: add tests and impl * fix: update comments * fix: minor rename * fix: use noopListener * fix: don't change the "FeatureEnabled" state of the fallback variant * Chore: remove empty struct from list * Test: ensure that the fallback variant's `FeatureEnabled` is unchanged * Docs: add notes about `FeatureEnabled` to function docs
- Loading branch information
1 parent
b8e8889
commit 4081ef8
Showing
3 changed files
with
303 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters