@@ -1135,34 +1135,39 @@ def sidebar_links(self, current_path):
11351135 def timeline (self ):
11361136 timeline_entries = [
11371137 {
1138+ "step" : NimbusUIConstants .EXPERIMENT_ORDERING ["Draft" ],
11381139 "label" : self .Status .DRAFT ,
11391140 "date" : self .draft_date ,
11401141 "is_active" : self .is_draft ,
11411142 "days" : self .computed_draft_days ,
11421143 "tooltip" : NimbusUIConstants .TIMELINE_TOOLTIPS ["Draft" ],
11431144 },
11441145 {
1146+ "step" : NimbusUIConstants .EXPERIMENT_ORDERING ["Preview" ],
11451147 "label" : self .Status .PREVIEW ,
11461148 "date" : self .preview_date ,
11471149 "is_active" : self .is_preview ,
11481150 "days" : self .computed_preview_days ,
11491151 "tooltip" : NimbusUIConstants .TIMELINE_TOOLTIPS ["Preview" ],
11501152 },
11511153 {
1154+ "step" : NimbusUIConstants .EXPERIMENT_ORDERING ["Review" ],
11521155 "label" : self .PublishStatus .REVIEW ,
11531156 "date" : self .review_date ,
11541157 "is_active" : self .is_review_timeline ,
11551158 "days" : self .computed_review_days ,
11561159 "tooltip" : NimbusUIConstants .TIMELINE_TOOLTIPS ["Review" ],
11571160 },
11581161 {
1162+ "step" : NimbusUIConstants .EXPERIMENT_ORDERING ["Enrollment" ],
11591163 "label" : NimbusConstants .ENROLLMENT ,
11601164 "date" : self .start_date ,
11611165 "is_active" : self .is_enrolling ,
11621166 "days" : self .computed_enrollment_days ,
11631167 "tooltip" : NimbusUIConstants .TIMELINE_TOOLTIPS ["Enrollment" ],
11641168 },
11651169 {
1170+ "step" : NimbusUIConstants .EXPERIMENT_ORDERING ["Complete" ],
11661171 "label" : self .Status .COMPLETE ,
11671172 "date" : self .computed_end_date ,
11681173 "is_active" : self .is_complete ,
@@ -1174,6 +1179,7 @@ def timeline(self):
11741179 timeline_entries .insert (
11751180 4 ,
11761181 {
1182+ "step" : NimbusUIConstants .EXPERIMENT_ORDERING ["Observation" ],
11771183 "label" : NimbusConstants .OBSERVATION ,
11781184 "date" : self ._enrollment_end_date ,
11791185 "is_active" : self .is_observation ,
@@ -1184,6 +1190,13 @@ def timeline(self):
11841190
11851191 return timeline_entries
11861192
1193+ @property
1194+ def experiment_active_status (self ):
1195+ timeline = self .timeline ()
1196+ for item in timeline :
1197+ if item ["is_active" ]:
1198+ return item ["step" ]
1199+
11871200 @property
11881201 def should_end (self ):
11891202 if self .proposed_end_date :
0 commit comments