Closed
Bug 1282345
Opened 8 years ago
Closed 7 years ago
If a line number is given in the URL, Log viewer should go there instead of jumping to the first issue
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1315808
People
(Reporter: mozbugz, Unassigned)
Details
STR: 1. Navigate to https://treeherder.mozilla.org/logviewer.html#?job_id=22651204&repo=try#L3842 Expected: Log Viewer goes to line 3842. Actual: Log Viewer goes to line 521 (which is the location of the first issue), and even rewrites the URL with that line number! Interestingly, with Log Viewer now open, if I replace '521' with '3842' in the URL and press Enter, the viewer correctly moves to line 3842 and stays there. My (uninformed) guess is that when first opening, the Javascript code "helpfully" jumps to the first issue. It shouldn't do that when there's an explicit line number in the URL.
https://github.com/mozilla/treeherder/commit/337e89145ece97068afec6de7d5052ddcaf3d445#diff-4f14c25b423d5c12f4983b7229fedeb1 conflicting with the earlier https://github.com/mozilla/treeherder/commit/fb70245edd22ca7c340dcb3d4860b99df8cb0ec6 or https://github.com/mozilla/treeherder/commit/4b1c450b95a23fb0bb47d42a5a5716a19d05acaa I guess...
Comment 2•7 years ago
|
||
This reproduces even after bug 1315808.
Comment 3•7 years ago
|
||
I can't seem to reproduce this issue with the new Logviewer Navigating to https://treeherder.mozilla.org/logviewer.html#?job_id=68103294&repo=mozilla-inbound&lineNumber=5 for example takes me to line 5, not 1981 (first issue).
Flags: needinfo?(emorley)
Comment 4•7 years ago
|
||
Huh so it does. I must have messed up the STR in comment 2 :-)
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(emorley)
Resolution: --- → DUPLICATE
Assignee | ||
Updated•2 years ago
|
Component: Treeherder: Log Viewer → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•