It would be useful to see the duration of "Similar jobs" in the table
Categories
(Tree Management :: Treeherder: Frontend, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: away, Assigned: bax.uva)
Details
(Keywords: good-first-bug, outreachy, Whiteboard: [lang=js])
Attachments
(1 external file)
One of my common actions on Treeherder is to look at the duration of various entries in "Similar Jobs". Sometimes I'm looking to see how long I should expect a successful job to take. Other times I'm looking at my own failed jobs to see at what point I can expect the failure if there is one (and after that point, I'm in the clear).
It would be useful to have the duration included in the table, to avoid clicking on each individual job.
(If this comes at too high a performance cost, then feel free to wontfix it.)
Updated•7 years ago
|
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Yes, this is very do-able. That information comes down with the initial list of similar jobs. So it's just a mater of adding the duration to the table.
The duration is calculated in https://github.com/mozilla/treeherder/blob/6899768b3582beba25e51370363b76a389d23c4e/ui/helpers/job.js#L168
But it looks like that's already applied to the jobs. So the real work here is to add the duration field to the table here:
https://github.com/mozilla/treeherder/blob/e6baf686f686639aeabdb73ae0224396f35e03be/ui/job-view/details/tabs/SimilarJobsTab.jsx#L171
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Giselle-- I have assigned you to this bug. Best of luck!
Updated•7 years ago
|
Comment 3•7 years ago
|
||
(In reply to Cameron Dawson [:camd] from comment #2)
Giselle-- I have assigned you to this bug. Best of luck!
(In reply to Cameron Dawson [:camd] from comment #2)
Giselle-- I have assigned you to this bug. Best of luck!
Hi, Cameron, I just submitted a pull request. Hope it worked cause this workflow is a bit new to me.
Because of UX reasons, I chose to insert the duration column before the revision column, not at the end, otherwise it wouldn't appear so well for the user.
Let me know if I need to change anything.
Comment 5•7 years ago
|
||
This was great! Nice work. Please move on to the second assignment. :)
Updated•7 years ago
|
(In reply to Cameron Dawson [:camd] from comment #5)
This was great! Nice work. Please move on to the second assignment. :)
Great! Will do =)
I can see that this change is now live on treeherder!
It may seem like a small change, but it's going to make my workflow so much nicer. Thank you Gisele and Cameron!
(In reply to :dmajor from comment #7)
I can see that this change is now live on treeherder!
It may seem like a small change, but it's going to make my workflow so much nicer. Thank you Gisele and Cameron!
Very happy to hear that!
Description
•