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

feat: FlexibleRollout should support "custom" stickiness. #71

Closed
ivarconr opened this issue Mar 25, 2021 · 0 comments
Closed

feat: FlexibleRollout should support "custom" stickiness. #71

ivarconr opened this issue Mar 25, 2021 · 0 comments

Comments

@ivarconr
Copy link
Member

The Flexible Rollout strategy supports multiple options for stickiness, used to define how we guarantee consistency for a gradual rollout.

Today it support the following options:

  • default (Unleash chooses the first value present on the context in defined order userId, sessionId, random.)
  • userId
  • sessionId
  • random

We have now extended the protocol to support any field in the unleash context. In addition It can be any of the predefined context field, in addition to any custom properties the user has defined.

This means that the "stickiness" parameter in the strategy configuration can now be any field on the context, and the SDK should use the specified context field to calculate the "hash" which determine whether the activation strategy should evaluate to true or false.

How it looks in the UI:
image

Edge case:

  • If the specified context field is not specific the activation strategy should evaluate to false.

To guide the implementation we have:

  • added new client-specifications, see pr-11
  • implemented PoC in Node SDK see pr-201
@ivarconr ivarconr added this to To do in Unleash v4.0 Mar 25, 2021
@ivarconr ivarconr moved this from To do to In progress in Unleash v4.0 May 4, 2021
chriswk pushed a commit that referenced this issue Jun 16, 2021
* move default to "default" and add default resolve from ctx
* userid/sessionid are now resolved from context
* Add quick info on configuring custom stickiness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Unleash v4.0
In progress
Development

No branches or pull requests

2 participants