Skip to content

Search functionality in log files #3933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mihaiparvu
Copy link
Contributor

I created a prototype search in log.html for #3799.
The interface was inspired from the old search function in libdoc and it looks like this:

Capture0

Capture

In the search dialog, all the results are links to the keywords in the log file and inside the log the results are highlighted in orange.

A limitation I've encountered is that not all keywords are available from the start in DOM and are not accessible to search through them. A proposal I have is to add a checkbox to Expand all keywords and search, but maybe there is a better way to do it that I cannot see at the moment.

@pekkaklarck any comments and suggestions from you are welcomed :)

@LucianCrainic
Copy link
Contributor

Hi @mihaiparvu does it only search for keywords ? Since it would be great to search the whole contents of the log.html. I will make an example:

let's say we have a keyword that returns a dictionary data and we make a comparison with an expected dictionary. If they do not match the keyword would be repeated for an amout of time (eg. 2 minutes) untill it fails if they do not match. Searching through all the repeated keywords and looking at the dictionary that i am looking for takes a lot of time, while with a search function it would save a lot of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants