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

Variant Distribution does not work #293

Closed
tkanos opened this issue Sep 27, 2019 · 2 comments
Closed

Variant Distribution does not work #293

tkanos opened this issue Sep 27, 2019 · 2 comments

Comments

@tkanos
Copy link

tkanos commented Sep 27, 2019

When I have a Segment with the following distribution

  • 50% Variant A
  • 50% variant B,

PostEvaluation only returns me variant A

Expected Behavior

I should get 50% of the time variant A and the other 50% of the time variant B

Current Behavior

I only get varaint A

Possible Solution

Steps to Reproduce (for bugs)

  1. Go to https://try-flagr.herokuapp.com/#/flags/1
  2. Use the debug console to send a request
  3. Change the request context to have
"state":"CA"

you should en up with the following request :

{
  "entityID": "a1234",
  "entityType": "report",
  "entityContext": {
    "state": "CA"
  },
  "enableDebug": true,
  "flagID": 1,
  "flagKey": "kmmcd1nsd6ze56chh"
}
  1. Post 10 times, you should receive 10 "variantKey": "blue" instead of ~5 blue ~5 red

Context

I'm trying to make my company uses flagr.

Your Environment

  • Version used (flagr version): try-flagr.herokuapp.com one
  • Server type and version: try-flagr.herokuapp.com one
  • Operating System and version (uname -a): try-flagr.herokuapp.com one
  • Link to your project:
@tkanos
Copy link
Author

tkanos commented Sep 27, 2019

Never mind, I get that I had to change the entityID.

Sorry.

@tkanos tkanos closed this as completed Sep 27, 2019
@zhouzhuojie
Copy link
Collaborator

This is by design to keep the rollout persistent. The entropy and randomness should come from the population of entityID. We have some documentation from here https://checkr.github.io/flagr/#/flagr_overview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants