Closed Bug 1179337 Opened 9 years ago Closed 9 years ago

Logviewer console errors on first-click of a failure-step button edge

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jfrench, Assigned: jfrench)

References

Details

Attachments

(2 files)

The Logviewer console errors when first clicking on a failure-step button edge.

To reproduce:
o open any failed job in Logviewer eg.
https://treeherder.mozilla.org/logviewer.html#?job_id=11257981&repo=mozilla-inbound
o open the console
o click on the pale orange perimeter of the failure step

Expected:
A clean load of the failure step.

Observed:
(console) Uncaught TypeError: Cannot read property 'top' of undefined

Which exists here:
https://github.com/mozilla/treeherder/blob/master/ui/js/directives/log_viewer_steps.js#L12

It errors the same on any step type (failure, or success). Subsequent clicks seem to be fine.

It doesn't appear to be related to the recent work in bug 1057341 for the new logviewer step color treatment and header work (I rolled back to one commit prior and still reproduced it).
Attached image stepClickError
Per screen grab.
Blocks: 1182178
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
Attached file PR 876
PR for leisurely review :)
Attachment #8648749 - Flags: review?(cdawson)
Comment on attachment 8648749 [details] [review]
PR 876

lgtm.  :)
Attachment #8648749 - Flags: review?(cdawson) → review+
Marking fixed per above merge. Will verify on the next stage/prod push.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Verified fixed on production. We now automatically select the first failure, so verification was done with manual workflows after load.
Status: RESOLVED → VERIFIED
Component: Treeherder: Log Viewer → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: