-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Logs Auto Scroll #3561
Logs Auto Scroll #3561
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3561 +/- ##
==========================================
+ Coverage 48.38% 48.42% +0.03%
==========================================
Files 165 165
Lines 8000 8000
Branches 24 24
==========================================
+ Hits 3871 3874 +3
+ Misses 3862 3858 -4
- Partials 267 268 +1
Continue to review full report at Codecov.
|
/assign maciaszczykm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreeing with @maciaszczykm -- This doesn't solve #3509, it only solves #2610
I'd lgtm it once we clarify that auto-scrolling was the only intent for this PR.
Thanks!
Works fine for page refresh, but not when switching pages. It is quote uncomfortable at the moment, but newest logs are at the end. Can you scroll also on page changes? And remove #3509 from fixed issues please. |
I've removed #3509, I'll have to thrash that on another PR. The current behavior is it scrolls only when the user is already at the bottom of the logs viewer. This is to avoid a situation where you're trying to read something higher up in the page but the logs keep scrolling down during auto-refresh. Currently, when you switch pages, you arrive at the top of the target page so it doesn't scroll because you're not at the bottom. What do you think? |
I'd say that on page change to next one we should stay on top, but on page change to the previous one, we should go to the bottom to make it feel like you can continue reading without scrolling manually. As for the autoscroll to bottom when using autorefresh, I would maybe add new option to follow the logs. Maybe something like travis does? |
Okay, new changes:
Sounds good. |
Also it looks like you have a conflict in When you make your additional changes, please resolve that before pushing. :) Thanks! |
9e3646b
to
fd3137c
Compare
Implemented:
|
8b51302
to
eac938f
Compare
@eloyekunle Your latest changes broke some HTML formatting. See https://travis-ci.org/kubernetes/dashboard/jobs/496191334#L297 You can test these CI checks locally by running After that quick formatting fix I'll give it one more look and lgtm it. :) Thanks! |
@jeefy Thanks, I've fixed the HTML formatting. |
- scrolls to bottom on navigation to prev page - scrolls to top on navigation to next page
ce596f7
to
9c7e1e3
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eloyekunle, jeefy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Update the Logs view to support autoscroll when Logs refresh.
Closes #2610