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

fix: update playground SDK to increase the possible random numbers used for stickiness id #8182

Merged

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Sep 19, 2024

Same fix as done in some other sdks, such as the node one at
Unleash/unleash-client-node#417

Fixes an issue where 1% rollout would not yield any results with
random rollout for certain group ids

…ed for stickiness id

Same fix as done in some other sdks, such as the node one at
https://github.com/Unleash/unleash-client-node/pull/417o

Fixes an issue where 1% rollout would not yield any results with
random rollout for certain group ids
Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 8:30am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 8:30am

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@thomasheartman thomasheartman enabled auto-merge (squash) September 19, 2024 08:31
@@ -10,7 +10,7 @@ const STICKINESS = {

export default class FlexibleRolloutStrategy extends Strategy {
private randomGenerator: Function = () =>
`${Math.round(Math.random() * 100) + 1}`;
`${Math.round(Math.random() * 10_000) + 1}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use the same 10000 as Node SDK for easy code searching between the two

@thomasheartman thomasheartman merged commit 15a98fc into main Sep 19, 2024
9 checks passed
@thomasheartman thomasheartman deleted the fix/1-2864-investigate-rollout-distribution-issues branch September 19, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants