From 86914f04828980a832fada0e7880c01274a120f8 Mon Sep 17 00:00:00 2001 From: Elise Richards Date: Tue, 7 Feb 2023 13:31:34 -0600 Subject: [PATCH] For #7823 feat(nimbus): Add population percent and dirty to constants (#8250) Because... * We want to allow updates to dirty states and allow editing for population percent for live rollouts This commit... * updates the serializer constants to reflect that --- app/experimenter/experiments/api/v5/serializers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/experimenter/experiments/api/v5/serializers.py b/app/experimenter/experiments/api/v5/serializers.py index 995c55aa8..00cb9210f 100644 --- a/app/experimenter/experiments/api/v5/serializers.py +++ b/app/experimenter/experiments/api/v5/serializers.py @@ -86,7 +86,9 @@ class TransitionConstants: NimbusExperiment.PublishStatus.IDLE, ], "experiments": [], - "rollouts": [], + "rollouts": [ + NimbusExperiment.PublishStatus.DIRTY, + ], } STATUS_UPDATE_EXEMPT_FIELDS = { @@ -99,7 +101,7 @@ class TransitionConstants: "conclusion_recommendation", ], "experiments": [], - "rollouts": [], + "rollouts": ["population_percent"], }