You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evaluate each variant expression once, before bucketing, and return the result for the selected bucket.
Accept a primitive (string, number, boolean, null) or the resolve result as the variant. Any other result (e.g. an object or array) makes fractional return null, so the flag falls back to its default variant.
Bucketing doesn't change; it depends only on the bucketing value and the weights.
This may already work, or only need a variant type check adjusted. Either way, please add tests for a computed variant and for a non-primitive result.
Why: this allows the new resolve operator as a bucket variant (e.g. [{ "resolve": ["red", "SPLIT"] }, 50]), so each bucket can set its own reason and metadata.
Activity