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. #80

Closed
ivarconr opened this issue Mar 25, 2021 · 0 comments · Fixed by #107
Closed

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

ivarconr opened this issue Mar 25, 2021 · 0 comments · Fixed by #107

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
kjvalencik added a commit to kjvalencik/unleash-client-go that referenced this issue Mar 8, 2022
kjvalencik added a commit to kjvalencik/unleash-client-go that referenced this issue Mar 10, 2022
chriswk pushed a commit that referenced this issue Apr 28, 2022
Internalized PR based on work from @kjvalencik

Authored-by: @kjvalencik

fixes: #80, #81
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
Development

Successfully merging a pull request may close this issue.

1 participant