flagr icon indicating copy to clipboard operation
flagr copied to clipboard

Bug: can't setup distribution for 100+ variants

Open 4n70w4 opened this issue 5 years ago • 2 comments

I sucesfully add 280 variants for flag. And will grow up to 10 000+ in the future.

Via UI I can't set float distribution percent for variant.

Via API I get error cannot unmarshal number 0.1 into Go struct field Distribution.percent of type int64

As a result, I can add more than 100 variants, but I can only distribute only no more 100 variants.

4n70w4 avatar Nov 24 '19 13:11 4n70w4

This is a very interesting use case I didn't think of before, can you elaborate on how are you going to use 100+ variants?

Flagr's model uses static 1000 buckets for deterministic hashing, that's why we didn't use float distribution.

https://checkr.github.io/flagr/#/flagr_overview - "Rollout"

zhouzhuojie avatar Nov 25 '19 17:11 zhouzhuojie

@zhouzhuojie marketing cases.... an variant may be a promocode for product, service, category, brand, etc.

4n70w4 avatar Nov 26 '19 08:11 4n70w4

Stale issue message

github-actions[bot] avatar Aug 26 '22 21:08 github-actions[bot]