This PR adds support for relative weights in the fractional evaluator. This new (non breaking) feature has been proposed in https://github.com/open-feature/flagd/issues/1282 (The related PR to implement this in flagd is this one: https://github.com/open-feature/flagd/pull/1313).
In addition to supporting relative weights instead of percentages, the weight value for a distribution item can be omitted. In this case, a default weight of 1 will be applied.
Leaving this in draft until the related PR in flagd has been merged
@bacherfl I made a couple minor tweaks to the algorithm; we had a slight deviation when no bucking value was supplied. You can see them here. Also, this was fun.
I also added the e2e tests for this new functionality.
This PR adds support for relative weights in the fractional evaluator. This new (non breaking) feature has been proposed in https://github.com/open-feature/flagd/issues/1282 (The related PR to implement this in flagd is this one: https://github.com/open-feature/flagd/pull/1313). In addition to supporting relative weights instead of percentages, the weight value for a distribution item can be omitted. In this case, a default weight of
1
will be applied.Leaving this in draft until the related PR in flagd has been merged