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

[#132] Error Throwing in Feature-Flag Stores #139

Merged
merged 14 commits into from
May 10, 2024

Conversation

yakovmanshin
Copy link
Owner

[Closes #132]

  • Extended the protocols for feature-flag stores to support error throwing in reading, writing, and removing values, and saving changes
  • Updated the built-in stores
  • Updated FeatureFlagResolver
  • Updated tests

@yakovmanshin yakovmanshin added new New feature or request testing Issues related to automated testing breaking This issue breaks compatibility with previous versions labels May 10, 2024
@yakovmanshin yakovmanshin added this to the v4.0.0 milestone May 10, 2024
@yakovmanshin yakovmanshin self-assigned this May 10, 2024
@yakovmanshin yakovmanshin merged commit ab7fff1 into main May 10, 2024
7 checks passed
@yakovmanshin yakovmanshin deleted the 132-error-throwing-in-feature-flag-stores branch May 10, 2024 22:56
yakovmanshin added a commit that referenced this pull request May 12, 2024
* Previously, feature-flag stores returned `nil` when the value was not found
* This behavior made it impossible to distinguish between the absence of a value and a literal `nil` value
* While this distinction wasn’t important in the majority of cases, it could be sometimes
* For that reason, optional values were not supported in YMFF
* #132 / #139 changed the protocols for feature-flag stores so they throw errors instead of returning `nil` for nonexistent values
* This change made it possible to accept `nil` as a valid feature-flag value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This issue breaks compatibility with previous versions new New feature or request testing Issues related to automated testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support error throwing in feature-flag stores
1 participant