Closed Bug 1521981 Opened 7 years ago Closed 7 years ago

It would be useful to see the duration of "Similar jobs" in the table

Categories

(Tree Management :: Treeherder: Frontend, enhancement, P3)

enhancement

Tracking

(Not tracked)

VERIFIED FIXED

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.)

Component: Treeherder → Treeherder: Frontend
Priority: -- → P3

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

Whiteboard: [lang=js]

Giselle-- I have assigned you to this bug. Best of luck!

Assignee: nobody → bax.uva
Status: NEW → ASSIGNED

(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.

This was great! Nice work. Please move on to the second assignment. :)

Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED

(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!

Status: RESOLVED → VERIFIED

(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!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: