Skip to content

Multivariate variation weights cannot be set to decimal/fractional values in the dashboard #7671

@Holmus

Description

@Holmus

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

  1. Create a multivariate feature with two variations.
  2. 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.
  3. Open the feature in the dashboard - the decimal weights are displayed correctly (e.g. 0.1 / 99.9).
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    front-endIssue related to the React Front End Dashboard

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions