Skip to content

Combined PR for #22, #23, #24 #25

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

Conversation

dshafik
Copy link
Contributor

@dshafik dshafik commented Feb 7, 2021

This PR combines #22, #23, and #24

This is necessary because the changes in #23 change the new tests in #22 (the order of accessing the config changes).

If you wish to accept all three PRs, just merge this one and close the others.

@dshafik dshafik force-pushed the add-dynamic-strategies-facades-failover branch 2 times, most recently from b7bb189 to c330612 Compare February 7, 2021 07:13
…sh->isFeatureDisabled()`

This change allows for more complex strategies to be employed that rely on runtime data not available in the request.
- Changes cache TTL default to 15s, the standard default
- Add unleash.cache.failover option that will pull the last successful result from the cache
  - This setting is independent of regular caching
  - The cache is always stored, to allow enabling the feature during a failure incidence
- This change also moves the requests for features out of the constructor
  - Possible to use in Facades
  - Still "cached" for the lifetime of the Unleash object
@dshafik dshafik force-pushed the add-dynamic-strategies-facades-failover branch from c330612 to bcb9cf3 Compare February 19, 2021 19:32
@mxkxf
Copy link
Collaborator

mxkxf commented Feb 21, 2021

I'd be much more comfortable releasing the features you've built incrementally @dshafik, especially as this PR is quite large.

Hope that's ok, will close this one for now.

@mxkxf mxkxf closed this Feb 21, 2021
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