Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions docs/experimenter/openapi-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -273,7 +274,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -621,7 +623,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -699,7 +702,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -783,7 +787,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -888,7 +893,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -1287,7 +1293,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
],
"type": "string"
},
Expand Down
21 changes: 14 additions & 7 deletions docs/experimenter/swagger-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -285,7 +286,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -633,7 +635,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -711,7 +714,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -795,7 +799,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -900,7 +905,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
]
}
},
Expand Down Expand Up @@ -1299,7 +1305,8 @@
"Draft",
"Preview",
"Live",
"Complete"
"Complete",
"Paused"
],
"type": "string"
},
Expand Down
4 changes: 4 additions & 0 deletions experimenter/experimenter/experiments/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ class Status(models.TextChoices):
LIVE = "Live"
COMPLETE = "Complete"

# This status applies only to rollouts, and indicates that the rollout has been
# paused. It is not a valid status for experiments.
PAUSED = "Paused"

class PublishStatus(models.TextChoices):
IDLE = "Idle"
REVIEW = "Review"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Generated by Django 5.2.14 on 2026-06-24 18:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('experiments', '0331_alter_nimbusalert_alert_type'),
]

operations = [
migrations.AlterField(
model_name='nimbuschangelog',
name='new_status',
field=models.CharField(choices=[('Draft', 'Draft'), ('Preview', 'Preview'), ('Live', 'Live'), ('Complete', 'Complete'), ('Paused', 'Paused')], max_length=255),
),
migrations.AlterField(
model_name='nimbuschangelog',
name='new_status_next',
field=models.CharField(blank=True, choices=[('Draft', 'Draft'), ('Preview', 'Preview'), ('Live', 'Live'), ('Complete', 'Complete'), ('Paused', 'Paused')], max_length=255, null=True),
),
migrations.AlterField(
model_name='nimbuschangelog',
name='old_status',
field=models.CharField(blank=True, choices=[('Draft', 'Draft'), ('Preview', 'Preview'), ('Live', 'Live'), ('Complete', 'Complete'), ('Paused', 'Paused')], max_length=255, null=True),
),
migrations.AlterField(
model_name='nimbuschangelog',
name='old_status_next',
field=models.CharField(blank=True, choices=[('Draft', 'Draft'), ('Preview', 'Preview'), ('Live', 'Live'), ('Complete', 'Complete'), ('Paused', 'Paused')], max_length=255, null=True),
),
migrations.AlterField(
model_name='nimbusexperiment',
name='status',
field=models.CharField(choices=[('Draft', 'Draft'), ('Preview', 'Preview'), ('Live', 'Live'), ('Complete', 'Complete'), ('Paused', 'Paused')], default='Draft', max_length=255, verbose_name='Status'),
),
migrations.AlterField(
model_name='nimbusexperiment',
name='status_next',
field=models.CharField(blank=True, choices=[('Draft', 'Draft'), ('Preview', 'Preview'), ('Live', 'Live'), ('Complete', 'Complete'), ('Paused', 'Paused')], max_length=255, null=True),
),
]
3 changes: 3 additions & 0 deletions experimenter/experimenter/nimbus_ui/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class NimbusUIConstants:
"Cannot perform this action: experiment must be in state {required_state}, "
"but is currently in state {current_state}."
)
ERROR_INVALID_PAUSED_TRANSITION = (
"Cannot perform this action: only rollouts may be paused."
)

RISK_MESSAGE_URL = "https://mozilla-hub.atlassian.net/wiki/spaces/FIREFOX/pages/208308555/Message+Consult+Creation"
REVIEW_URL = "https://experimenter.info/getting-started/for-reviewers"
Expand Down
Loading
Loading