-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix logs view #382
Fix logs view #382
Conversation
…l-jumping in log-view
…ting a new logLevel
Did you test your changes with big log files, like 50 MiB of log entries for example? Because that's the reason, why UI virtualization exists.
This sounds like filtering, not searching. These are different use-cases. |
The biggest files i tested had 13000 log lines. The goal was not to remove UI virtualization but to fix the lagging problem. Trying that i realized that removing the aurelia virtual-repeat also fixed the lagging but we wanted to reload content dynamically, that is why i implemented the dynamic reloading by myself
What i meant by that is that by pressing enter you jump to the next search result. Therefore the window is not scrolling and reloading blocks until it finds the result, but instead it finds the result immediately and loads messages around the result. But if you imply that filtering is used to only load messages in the DOM that are located around the search result, you are right. |
Please try with the complete log of the Integration test suite in DEBUG mode. Or ask @martingrossmann, because he had a big test suite with many logs that result in UI freezes in log view before introducing UI virtualization.
Just to make sure there is not misunderstanding: The previous approach was, to simulate searching of keywords through the log view by finding the next result, scrolling to and highlighting it. It should behave like searching through a document in the browser or a regular text editor. Not any line should be hidden (filtered) by the search. |
Yes right. There is nothing hidden in terms of being unreachable. They are just not displayed in the DOM because they are outside of the viewport anyways. By searching we just jump to another part of the logmessage-"text" I will record a video to clear all misunderstandings |
I think this is not necessary :) I believe that your colleagues have seen the result and accepting it. |
@mreiche Yes, we have tested the new implementation also with big excution files and a huge number of logs. The look-and-feel is the same. Except, scrolling is working. |
828ab1a
Description
Log view was already implemented but could not be used due to scrolling bugs.
Fixes
scrolling fixes:
virtual.repeat
cannot handle elements that do not have the same height => probably gets stuck between function calls (triggered by the position of the scrollingwheel) that load more content up or down(I experienced the same behavior when i tried to recreate dynamic scrolling by myself)
virtual-repeat
functionality)search fixes:
scrollIntoView()
instead of calculating scroll distancestackTrace.messages
(found results were highlighted but not considered when jumping through results)loggerName
(sometimes there were search results in the data model but the result was not displayed on the website because it was converted with a statusConverter)general improvements:
Type of change
Please delete options that are not relevant.
Known Issues / Future Work
Checklist: