Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Get notified when feature rollout rules change #196

Closed
IrinaSouth opened this issue Jan 25, 2024 · 0 comments · Fixed by #197
Closed

Get notified when feature rollout rules change #196

IrinaSouth opened this issue Jan 25, 2024 · 0 comments · Fixed by #197

Comments

@IrinaSouth
Copy link
Contributor

Discussed in featurehub-io/featurehub#1108

Originally posted by scampos-smarttech January 19, 2024
Hello,
I would like to get some help. If I modify conditions within role rules targeting specific users, that role's event listener does not notify those who no longer meet the requirements.

My setup is as follows:
I create a new feature in the dashboard and configure its rules with a custom field for it. The configurations is as follow:

Key: enable_beta_features
Type: Boolean
default value: Off
rule: "beta-user" > Boolean > equals > true

In the code, using featurehub-javascript-client-sdk, I set an addListener for that feature, and then I update the user-context by adding the beta-user attribute and. But if I change the feature rules in the panel, the users who are using the app do not receive the live-update. My expectations are that those users that don't meet the new conditions will receive the default feature value.

It is possible to get the live-update in this case?

As a workaround, it works after I refresh the browser, but my expectation is to receive the live-update.

Thanks in advance!

rvowles added a commit that referenced this issue Jan 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant