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)
Tree Management
Treeherder: Frontend
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)
Reporter | ||
Comment 1•7 years ago
|
||
See also bug 1479522 comment 3
Assignee | ||
Comment 2•7 years ago
|
||
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)
Comment 3•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #9013017 -
Flags: review?(sclements)
Reporter | ||
Comment 4•7 years ago
|
||
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? :-)
Updated•7 years ago
|
Attachment #9013017 -
Flags: review?(sclements) → review+
Comment 5•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/1b0eb3bbe866f82df2a0c309d042d2cd80adedcc
Bug 1494667 - Fix selecting job within count on page load (#4081)
Assignee | ||
Updated•7 years ago
|
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.
Description
•