Summary
Multivariate variation weights (percentage_allocation) support decimal/fractional values end to end - the API accepts and stores them, and the dashboard displays stored decimal weights correctly - but the dashboard does not let you enter a decimal value. The weight input rounds to a whole number, so fractional weights can only be set via the API.
Steps to reproduce
- Create a multivariate feature with two variations.
- Using the Admin API, set the variation weights to decimal values (e.g.
0.1 and 99.9) on the feature state's multivariate_feature_state_values.
- Open the feature in the dashboard - the decimal weights are displayed correctly (e.g.
0.1 / 99.9).
- Try to set or edit a variation weight to a decimal value in the dashboard.
Expected
Decimal/fractional weights can be entered in the dashboard, consistent with what the data model and API already support and what the dashboard already displays.
Actual
The dashboard weight input rounds the entered value to an integer, so decimal weights cannot be set through the GUI - only via the API.
Summary
Multivariate variation weights (
percentage_allocation) support decimal/fractional values end to end - the API accepts and stores them, and the dashboard displays stored decimal weights correctly - but the dashboard does not let you enter a decimal value. The weight input rounds to a whole number, so fractional weights can only be set via the API.Steps to reproduce
0.1and99.9) on the feature state'smultivariate_feature_state_values.0.1/99.9).Expected
Decimal/fractional weights can be entered in the dashboard, consistent with what the data model and API already support and what the dashboard already displays.
Actual
The dashboard weight input rounds the entered value to an integer, so decimal weights cannot be set through the GUI - only via the API.