Closed
Bug 1298457
Opened 9 years ago
Closed 9 years ago
If you are is_staff and don't have "&autoclassify" in the URL, the autoclassification panel does not show up on first page load
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: KWierso, Assigned: KWierso)
Details
Attachments
(1 file)
As an is_staff sheriff on Treeherder, I'm automatically opted in to the autoclassification panel by default. It looks like there's a race condition somewhere in it, though.
If I'm signed in to Treeherder with my is_staff account and then load https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=717ef7ea17e82c6fe24fed6fe89a532dcdb28a19&filter-searchStr=3ef212a2381f11d60ce1c32ffd1794d229b29add&selectedJob=4757620 the autoclassify panel does not appear at all.
If I'm signed in to my is_staff account and load the same URL but add "&autoclassify" https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=717ef7ea17e82c6fe24fed6fe89a532dcdb28a19&filter-searchStr=3ef212a2381f11d60ce1c32ffd1794d229b29add&selectedJob=4757620 the autoclassification panel show up and is selected like it should be.
I'm guessing at the point where the job is selected during page load, my is_staff permissions have yet to be processed?
Assignee | ||
Comment 1•9 years ago
|
||
(To get the autoclassify panel to show up as an option once the bottom panel opens without the autoclassify panel showing up, you have to unselect the job, then reselect it (or, if you're in a view with more than one job visible, just select a different job.)
Assignee | ||
Comment 2•9 years ago
|
||
I think we need to listen for the userChange event that gets broadcast from https://github.com/mozilla/treeherder/blob/4c8d3f69e67e5608c6241fe0bca69a78af150fe6/ui/js/directives/treeherder/persona.js#L69
Comment 3•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → wkocher
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8785498 [details] [review]
[treeherder] KWierso:autoclassifydoesntshow > mozilla:master
Turns out we're already listening for the userchange event: https://github.com/mozilla/treeherder/blob/f7b3d2f67d218580d8d5be97d558c5e72e57360d/ui/plugins/controller.js#L68
This patch double-checks the conditions for showing the autoclassification panel every time a job is selected in the UI, which appears to solve this bug.
Attachment #8785498 -
Flags: review?(james)
Comment 5•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/399dd8fbe95a0689d78833563bc24b9dd505a3b1
Bug 1298457 - Make sure autoclassify tab is shown when it should (#1813)
* Bug 1298457 - Make sure autoclassify tab is shown when it should
If you're a sheriff (is_staff=true) and load treeherder with a selected
job in the url, the autoclasify tab doesn't show up like it should.
This patch double-checks the conditions for showing the autoclassify panel
whenever a job gets selected.
Updated•9 years ago
|
Attachment #8785498 -
Flags: review?(james) → review+
Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•