You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the [commit https://github.com/Unleash/unleash-client-java/commit/78a0d33358bb375d6abe8d08de60f704a12961a6](feat: strategy variants) has been introduced a bug.
When retrieving the toggle enabled strategies it is returned only the first. In case of multiple strategy the the toggle will result disabled even when the context is valid.
See into class src/main/java/io/getunleash/DefaultUnleash.java
Thanks for the report! I currently managed to reproduce it locally, I'm working on a unit test and then trying to fix it. I believe you properly pointed at the issue with that findFirst, thanks!
Describe the bug
In the [commit https://github.com/Unleash/unleash-client-java/commit/78a0d33358bb375d6abe8d08de60f704a12961a6](feat: strategy variants) has been introduced a bug.
When retrieving the toggle enabled strategies it is returned only the first. In case of multiple strategy the the toggle will result disabled even when the context is valid.
See into class
src/main/java/io/getunleash/DefaultUnleash.java
Steps to reproduce the bug
Expected behavior
When calling the method
isEnabled
with context that meet one of the strategy should expecttrue
as responseLogs, error output, etc.
No response
Screenshots
No response
Additional context
No response
Unleash version
Subscription type
Enterprise
Hosting type
Hosted by Unleash
SDK information (language and version)
java, 8.3.0 ( introduced in this commit-78a0d33358bb375d6abe8d08de60f704a12961a6)
The text was updated successfully, but these errors were encountered: