Closed Bug 1535414 Opened 5 years ago Closed 4 years ago

Provide a mechanism to find-in-file the log when viewed in the log viewer

Categories

(Tree Management :: Treeherder, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: kats, Unassigned, Mentored)

References

Details

(Whiteboard: [lang=js])

The log viewer seems to do some sort of dynamic thing where it removes parts of the log not immediately visible. But this breaks ctrl-f to search for stuff. It would be nice if there was some way to do a ctrl-f type of operation on the log. I know it can be done by opening the raw log, but in this particular scenario I want to link to a specific line number so I need to find the line in the log viewer.

Yes, we use the react-lazy-log component which pages information in and out. We can experiment with widening the overscan on this, but it won't really fix this because it won't be a complete load.

Your best bet, if you need to do a ctrl+f kind of search is to use load the raw log.

(In reply to Cameron Dawson [:camd] from comment #1)

Yes, we use the react-lazy-log component which pages information in and out. We can experiment with widening the overscan on this, but it won't really fix this because it won't be a complete load.

I was thinking along the lines of adding a little feature on the log viewer that lets you enter a search term and it will XHR back to the server to do the search and then let you navigate between occurrences. Basically reimplementing the find-in-page feature on the log viewer. I realize this might be overkill, so feel free to close as WONTFIX.

This sounds totally reasonable, yeah. Though I must admit I don't think anyone in-house will get to this any time soon. Though we'd be happy to accept patches for it. :) I'll mark its priority accordingly.

Thanks for the idea!

Mentor: cdawson
Priority: -- → P5
Whiteboard: [lang=js]
See Also: → 1506627

This happened at some point. I can't be bothered to track down the relevant thing to dupe this to.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
Component: Treeherder: Log Viewer → TreeHerder
You need to log in before you can comment on or make changes to this bug.