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)

defect
Not set
normal

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.
This reproduces even after bug 1315808.
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)
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
Component: Treeherder: Log Viewer → TreeHerder
You need to log in before you can comment on or make changes to this bug.