File tree 3 files changed +23
-19
lines changed
3 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 136
136
}
137
137
],
138
138
"related_alerts" : [],
139
+ "duplicated_summaries_ids" : [],
139
140
"status" : 0 ,
140
141
"bug_number" : null ,
141
142
"bug_updated" : null ,
223
224
}
224
225
],
225
226
"related_alerts" : [],
227
+ "duplicated_summaries_ids" : [],
226
228
"status" : 0 ,
227
229
"bug_number" : null ,
228
230
"bug_updated" : null ,
358
360
}
359
361
],
360
362
"related_alerts" : [],
363
+ "duplicated_summaries_ids" : [],
361
364
"status" : 0 ,
362
365
"bug_number" : null ,
363
366
"bug_updated" : null ,
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def test_alert_summaries_get(
94
94
"push_timestamp" ,
95
95
"prev_push_revision" ,
96
96
"performance_tags" ,
97
+ "duplicated_summaries_ids" ,
97
98
}
98
99
assert len (resp .json ()["results" ][0 ]["alerts" ]) == 1
99
100
assert set (resp .json ()["results" ][0 ]["alerts" ][0 ].keys ()) == {
@@ -174,6 +175,7 @@ def test_alert_summaries_get_onhold(
174
175
"push_timestamp" ,
175
176
"prev_push_revision" ,
176
177
"performance_tags" ,
178
+ "duplicated_summaries_ids" ,
177
179
}
178
180
assert len (resp .json ()["results" ][0 ]["alerts" ]) == 1
179
181
assert set (resp .json ()["results" ][0 ]["alerts" ][0 ].keys ()) == {
Original file line number Diff line number Diff line change @@ -111,25 +111,6 @@ const AlertHeader = ({
111
111
PerfCompare comparison
112
112
</ a >
113
113
</ Row >
114
- { alertSummary . duplicated_summaries_ids . length > 0 && (
115
- < Row className = "m-0 px-0 py-0" >
116
- Duplicated summaries:
117
- { alertSummary . duplicated_summaries_ids . map ( ( id , index ) => (
118
- < Link
119
- className = "text-dark mr-1"
120
- target = "_blank"
121
- to = { `./alerts?id=${ id } &hideDwnToInv=0` }
122
- id = { `alert summary ${ id . toString ( ) } title` }
123
- data-testid = { `alert summary ${ alertSummary . id . toString ( ) } title` }
124
- style = { { marginLeft : '5px' } }
125
- >
126
- Alert #{ id }
127
- { alertSummary . duplicated_summaries_ids . length - 1 !== index &&
128
- ', ' }
129
- </ Link >
130
- ) ) }
131
- </ Row >
132
- ) }
133
114
</ Col >
134
115
< Col className = "p-0" xs = "auto" >
135
116
{ inEditMode ? (
@@ -260,6 +241,24 @@ const AlertHeader = ({
260
241
/>
261
242
</ Col >
262
243
</ Row >
244
+ { alertSummary . duplicated_summaries_ids . length > 0 && (
245
+ < Row >
246
+ Duplicated summaries:
247
+ { alertSummary . duplicated_summaries_ids . map ( ( id , index ) => (
248
+ < Link
249
+ className = "text-dark mr-1"
250
+ target = "_blank"
251
+ to = { `./alerts?id=${ id } &hideDwnToInv=0` }
252
+ id = { `duplicated alert summary ${ id . toString ( ) } ` }
253
+ style = { { marginLeft : '5px' } }
254
+ >
255
+ Alert #{ id }
256
+ { alertSummary . duplicated_summaries_ids . length - 1 !== index &&
257
+ ', ' }
258
+ </ Link >
259
+ ) ) }
260
+ </ Row >
261
+ ) }
263
262
< Row >
264
263
{ performanceTags . length > 0 && (
265
264
< Col className = "p-0" xs = "auto" >
You can’t perform that action at this time.
0 commit comments