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

listeners not working with split rule #32

Open
valodzka opened this issue Oct 16, 2023 · 2 comments
Open

listeners not working with split rule #32

valodzka opened this issue Oct 16, 2023 · 2 comments

Comments

@valodzka
Copy link

Steps to reproduce:

  1. Create feature TEST, set value to 1
  2. Add listener using this sdk and context user_Id=1
  3. Add split rule with user_id=1 and feature value 2
  4. No listener called (but it will be called with correct value 2 if we change main feature value to some other value)

The issue is with this line io.featurehub.client.FeatureStateBase.java:200 where only main value checked.

@rvowles
Copy link
Contributor

rvowles commented Oct 17, 2023

HI there, yes - we haven't had much of a focus on listeners in Java because its an unusual use case. Could you give us some insight as to what you use them for?

@valodzka
Copy link
Author

I'm trying to use listeners to do remote configuration on subset of backend servers. It works if I change config for all of them, but doesn't if I try to configure only subset, like dc=eu

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

No branches or pull requests

2 participants