dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

UI should be live with information pushed from server

Open andrewrk opened this issue 8 years ago • 14 comments

There's no reason to press a refresh button. Instead of the dashboard requesting information from the server, it should subscribe to information from the server, and update the UI to reflect changes from the server.

andrewrk avatar Nov 03 '17 18:11 andrewrk

Agreed. Auto-refresh would be a temporary solution in this case as it is easier to implement at the moment.

maciaszczykm avatar Nov 07 '17 08:11 maciaszczykm

You could look at using GraphQL as it supports real-time data Subscriptions and has great cross platform support.

hexsprite avatar Nov 14 '17 22:11 hexsprite

For inspiration CoreOS Tectonic dashboard for Kubernetes updates dynamically.

javajon avatar Dec 03 '17 22:12 javajon

Just tracking this.

Antiarchitect avatar Dec 15 '17 03:12 Antiarchitect

As a step towards this, would it be reasonable to implemented a refresh button to re-fetch lists of pods, deployments, etc? I know one can just refresh the entire page, but that's not quite the same. List refresh can work much faster because it won't require css and js reloading, which is especially noticeable on slow remote networks.

I imagine it can look like this:

refresh-list

Or like this:

refresh-all

kachkaev avatar Feb 24 '18 11:02 kachkaev

We are considering few solutions.

  1. Adding auto-refresh option to local settings so user can select i.e. that he wants data to be refreshed every x sec.
  2. Thanks to angular migration it will be possible to support watch for resources as apiserver exposes watch endpoints.

We will revisit this after we finish angular migration.

floreks avatar Feb 24 '18 11:02 floreks

Good to know! If you consider adding auto-refresh option in future, it'd be also useful to have a tick to stop data refreshing when the tab is not focused. Here is how this setting looks like in netdata (server monitoring tool):

screen shot 2018-02-24 at 11 58 57

kachkaev avatar Feb 24 '18 12:02 kachkaev

Where is this issue? why it is frozen? I think this is a very important feature for the Dashboard :/

nebrass avatar Apr 13 '18 12:04 nebrass

@nebrass It is frozen because otherwise, bot would automatically close it after 30 days. I agree that it is very important, but even more important for us was the update to the new Angular as some of the old stuff was going to be deprecated and we wanted to use new functionality. Unfortunately, at the moment I have no time to contribute anymore so let's hope for contributions from other people to push migration and this feature forward.

maciaszczykm avatar Apr 13 '18 15:04 maciaszczykm

13 apr. Last post. Long time ago. Just checking on status? Also, my first though was "Click on a category in the left nav and the right / main view should reload/refresh. Now I have to click back and forth between categories in the left nav to update the right view. Dynamically/auto-update by subscribing to the server definitely would be the ultimate solution as already mentioned.

spacecat avatar Sep 26 '18 08:09 spacecat

I would love to see this, I run a lot of demos of Kubernetes and having the dashboard auto refresh would make my life so much easier. It would make the dashboard feel a lot more modern and responsive

benc-uk avatar Oct 25 '18 19:10 benc-uk

I'm also looking for this feature that would make the dashboard so much better! Please ! 🙏

zedtux avatar Jan 16 '19 05:01 zedtux

any update on this?

techfort avatar Oct 23 '19 09:10 techfort

There is a simple resource auto refresh added to the latest beta. It's not based on websockets though.

floreks avatar Oct 23 '19 10:10 floreks