File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -366,6 +366,7 @@ class Meta:
366366 "related_alerts" ,
367367 "status" ,
368368 "bug_number" ,
369+ "bug_status" ,
369370 "bug_due_date" ,
370371 "bug_updated" ,
371372 "issue_tracker" ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import Assignee from './Assignee';
1919import TagsList from './TagsList' ;
2020import AlertHeaderTitle from './AlertHeaderTitle' ;
2121import { getStatus } from '../perf-helpers/helpers' ;
22+ import { bugStatusMap } from '../perf-helpers/constants' ;
2223
2324const AlertHeader = ( {
2425 frameworks,
@@ -95,6 +96,9 @@ const AlertHeader = ({
9596 const bugNumber = alertSummary . bug_number
9697 ? `Bug ${ alertSummary . bug_number } `
9798 : '' ;
99+ const bugStatus = ( alertSummary . bug_status !== null && alertSummary . issue_tracker === 1 )
100+ ? `(${ getStatus ( alertSummary . bug_status , bugStatusMap ) } )`
101+ : '' ;
98102
99103 const performanceTags = alertSummary . performance_tags || [ ] ;
100104 const alertSummaryDatetime = new Date ( alertSummary . push_timestamp * 1000 ) ;
@@ -192,7 +196,8 @@ const AlertHeader = ({
192196 target = "_blank"
193197 rel = "noopener noreferrer"
194198 >
195- { bugNumber }
199+ { bugNumber } { ' ' }
200+ < span style = { { fontSize : '0.9em' } } > { bugStatus } </ span >
196201 </ a >
197202 ) : (
198203 { bugNumber }
Original file line number Diff line number Diff line change @@ -94,6 +94,18 @@ export const alertStatusMap = {
9494 acknowledged : 4 ,
9595} ;
9696
97+ export const bugStatusMap = {
98+ new : 0 ,
99+ fixed : 1 ,
100+ invalid : 2 ,
101+ inactive : 3 ,
102+ duplicate : 4 ,
103+ wontfix : 5 ,
104+ worksforme : 6 ,
105+ incomplete : 7 ,
106+ moved : 8 ,
107+ } ;
108+
97109export const alertBackfillResultStatusMap = {
98110 preliminary : 0 ,
99111 readyForProcessing : 1 ,
You can’t perform that action at this time.
0 commit comments