-
-
Notifications
You must be signed in to change notification settings - Fork 736
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
Can not to create default strategy #6053
Comments
Hi @dmitryshelomanov, can you check the default strategy that is currently configured for that project? You can check this by:
You may see something similar to the screenshot, which means that this is working as intended, as this is the default strategy for that environment in that project: Here is where you can also configure the default strategy, if you want. |
@nunogois not working. flexibleRollout strategy created. How to create default? "active for everyone" |
Now I try o create strategy 50% | 50% (Base A/B)
Code runner on Node JS (unleash-client) const unleash = await Unleash.startUnleash({
environment: process.env.NODE_ENV === 'development' ? 'development' : 'production',
url: 'http://localhost:4242/api/',
appName: 'default',
customHeaders: {
Authorization: 'default:development.unleash-insecure-api-token',
},
});
const { sub } = parseJwt({ accessToken, refreshToken });
const sessionId = sub || fingerPrint;
const ctx = {
sessionId,
};
const ttt = unleash.getVariant('ttt', ctx);
console.log({ ttt }); // variant desable, but its active in admin panel what wrong ? |
Just to be clear, Maybe what you're looking for is the "standard" strategy, that you can still add this way: Like it's mentioned on the UI, however, we suggest you use a "gradual rollout" instead. A "standard" strategy is effectively the same as a "gradual rollout", with the exception that a "gradual rollout" gives you the option of selecting only a percentage of your user base, if you want.
That being said, if you want your feature to be available to all your users, you should set your rollout to 100%, not 50%. This may be the reason why you're seeing the feature as being disabled in your tests. In conclusion:If you'd like to do an A/B test targeting 100% of your user base, you should:
Hope this helps! |
Thanks |
Describe the bug
When I try to create default strategy (for all users) its not created. Instead of this Gradual rollout created (flexibleRollout)
Steps to reproduce the bug
Expected Result
Actual behavior
Expected behavior
Experiment with name "name": "default", created
Logs, error output, etc.
No response
Screenshots
Additional context
No response
Unleash version
5.8.0+main
Subscription type
Open source
Hosting type
Self-hosted
SDK information (language and version)
No response
The text was updated successfully, but these errors were encountered: