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
How to enable Features based on Cookies or RequestParameters? #214
Comments
I imagine that you could create a custom |
I tried to implement custom ActivationStrategy implementation. It seems the DefaultFeatureManager considers the Strategy only if the feature is enabled.
But there could be scenarios where the feature is disabled by default but i want to enable it based on cookie value. In this case it doesn't work. May be i need to provide custom implementation of FeatureManager too? |
It is correct that activation strategies are only considered if the feature is on. So it works like this:
You should be able to implement your use case with this. You just have to turn on the feature and select your strategy. Everything else (including the fallback behavior) is implemented in the strategy. |
Seams that the question is answered, so I am closing the issue. |
I am looking to implement feature toggles based on some cookie value or request parameters. What would be the extension point to hookup the behaviour? Is providing a Cookie based StateRepository sufficient?
Any guidance would be helpful. Thanks in advance.
The text was updated successfully, but these errors were encountered: