Skip to content

Commit 889bb2e

Browse files
committed
add a whiteboard tag [collect_confirm_failure] to new bugs
1 parent c1a2ce2 commit 889bb2e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

treeherder/webapp/api/bugzilla.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ def create_bug(self, request):
8383
)
8484
data["groups"] = security_group_list
8585

86+
# remove the temporary [collect_confirm_failure] tag when creating the bug
87+
if data["whiteboard"]:
88+
data["whiteboard"] = data["whiteboard"].replace("[collect_confirm_failure]", "")
89+
8690
try:
8791
response = make_request(url, method="POST", headers=headers, json=data)
8892
except requests.exceptions.HTTPError as e:

ui/shared/BugFiler.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ export class BugFilerClass extends React.Component {
533533
/* Intermittent bugs in the Core :: DOM: Security component need to have the
534534
whiteboard '[domsecurity-intermittent]' to support filtering by the
535535
triagers. Contact person is Christoph Kerschbaumer. */
536-
const whiteboard =
536+
let whiteboard =
537537
isIntermittent && product === 'Core' && component === 'DOM: Security'
538538
? '[domsecurity-intermittent]'
539539
: '';
@@ -554,6 +554,7 @@ export class BugFilerClass extends React.Component {
554554
if (launchConfirmFailure) {
555555
// Launch confirm failure task
556556
this.handleConfirmFailure();
557+
whiteboard += '[collect_confirm_failure]';
557558
}
558559
// Fetch product information from bugzilla to get version numbers, then
559560
// submit the new bug. Only request the versions because some products

0 commit comments

Comments
 (0)