Skip to content
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

Improve log handling #16

Merged
merged 5 commits into from Jan 28, 2020
Merged

Improve log handling #16

merged 5 commits into from Jan 28, 2020

Conversation

ricoberger
Copy link
Member

The log handling was improved and instead of the refresh button it's now possible to select from multiple options for the logs:

  • By default only the last 1000 lines are loaded to improve loading speed on mobile.
  • Load the complete log.
  • Load the previous logs of the container. By default the last 1000 lines are loaded.
  • Load the complete log of the previous container.

By clicking on one of the provided items again, the logs will be refreshed.

Bildschirmfoto 2020-01-26 um 00 00 08

The access to the logs on desktop was improved by adding a button to the container item.

Bildschirmfoto 2020-01-25 um 23 59 36

Closes #11

By default only the last 1000 log lines are loaded, because the complete
log results in very high traffic. This could be problematic on mobile.
The complete log can be loaded via a new menu button in the logs view.

It's now possible to load the previous log of a container. This should
improve the debugging capabilities of kubenav. Like for the current log
there are two options: Load the last 1000 log lines or load the complete
log.

To refresh the log, the corresponding menu item must be pressed again.
The refresh button is gone in favour for options menu.
The button property was added to the menu items in the namespace and log
popover to identicat that they can be clicked on desktop.

The space from the bottom of the view for the scroll down button was
doubled, for easier handling on mobile.
To access the logs on desktop a button was added to the container items.
Now it's not necessary anymore to swipe on the container name to access
the logs on desktop.

We had to add e.stopPropagation() to every button which can be accessed
in the logs view, to avoid some side effects with the containers modal.
The modal was opened without this function.
@ricoberger ricoberger added the enhancement New feature or request label Jan 25, 2020
@ricoberger ricoberger merged commit e9d0d53 into master Jan 28, 2020
@ricoberger ricoberger deleted the improve-log-handling branch January 28, 2020 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: "kubectl logs"
1 participant