Closed Bug 1494667 Opened 7 years ago Closed 7 years ago

"selectedJob" in the URL results in 'TypeError: "newSelectedElement is undefined; can't access its "setSelected" property"'

Categories

(Tree Management :: Treeherder: Frontend, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: camd)

References

Details

Attachments

(1 file)

Visiting a page with `selectedJob=NNNN`, such as: https://treeherder.mozilla.org/#/jobs?repo=try&revision=455e34f839570cae2a2bdada66c14f0977fd64bf&selectedJob=200557050 ...results in the the following exception: `TypeError: "V is undefined; can't access its "setSelected" property"` Reproducing locally the unminified version is: `TypeError: "newSelectedElement is undefined; can't access its "setSelected" property"` I've rolled back production for now, so no rush :-)
Flags: needinfo?(cdawson)
Interesting. This appears to happen if you've expanded a group of job counts (or they became grouped due to more jobs showing up) and selected one of those jobs. Then when we try to re-select that job, we can't set the styling of "selected" because the "job" won't be found in the DOM. I can make a simple check that will still show the details for that job, but not show it selected. However, the better fix would be to detect which "group" the job belongs to and expand it so that the job element is visible.
Status: NEW → ASSIGNED
Flags: needinfo?(cdawson)
Attachment #9013017 - Flags: review?(sclements)
I was hoping to try a prod deploy again soon, but it's blocked on fixing this. Would it be possible to look at the Travis failures on this PR today? :-)
Attachment #9013017 - Flags: review?(sclements) → review+
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: