File regression bugs using the API
Categories
(Tree Management :: Perfherder, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: alexandrui, Assigned: myeongjun.ko)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxp])
If the culprit is known and not confidential, allow the sheriffs to file and link a regression bug with a single click. Using the Bugzilla API we can query the culprit bug, and use this to file a new bug also via the API. We can then use the new bug ID to link to the alert.
Currently, filing a bug with a known culprit id opens a create new bug screen.
As implementation detail, currently the code is opening a new tab create new bug screen with the given params. We’ll have to use a different way of filing a bug as we need to get the id of the new bug created.
We neeed to create a react wrapper over Bugzilla:REST_API, with create, get and update functions. There’s BugFiler.jsx - a comprehensive example about how to use API to file a bug and is a good example code for how to handle different exception cases.
We need to be able to file regression bug after inputting the regressor in the file bug modal.
- The code should be able to file the regression with the details in the given bug ID and open it in a new tab.
- If not provided a bug ID, the code should create a new generic regression bug and open it in a new tab.
- If the given bug ID is not visible due to security issues, then file a generic regression bug.
The code should be tested on prototype and have unit tests.
Updated•2 years ago
|
Updated•10 months ago
|
Updated•9 months ago
|
Comment 2•6 months ago
|
||
PR for this is here and it's been landed in production now: https://github.com/mozilla/treeherder/pull/8048
Description
•