-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Periodically update the slices in the dashboard #374
Conversation
what happens if you go offline? Or you don't wanna have a refresh every 60 seconds? |
It would be ideal if the users can freely decide the refresh interval ( or never refresh) for each slice on the UI. But in the short term, maybe it we can just make it globally configurable in a config file? I just don't have any idea where is the better place for javascript configuration or whether is already any. Do you have any idea? Thanks |
@philippfrenzel I added the UI so the user can choose the refresh interval now |
I don't think the callback approach is necessary, the dashboard controller can manage this on its own. |
@mistercrunch In my use case, some queries are heavy. For example, if the user wants the dashboard to refresh every 10 seconds, but the query actually takes 30s, without the callback, there can be too many http requests pending in the browser. Maybe the user should choose a 1-minute interval, but maybe the user just doesn't know they are making the server load heavy. So I think a callback is natural for an async operation like this. Does it make sense to you? |
The frequency of updates should be much lower than the duration of the update. Regardless if any post refresh time-stamping it should be done in the I was also thinking there should be a 10-ish% randomness on the delay so that not all widgets refresh at the same time. The parameter should be set on a per-dashboard basis. |
@mistercrunch I implemented it and added an upper bound of 5 seconds. Please check again |
Nice! This is starting to look pretty solid. I'll do a more thorough round of review now. |
One thing we need to address is how the loading image pushes everything down while it's showing, it looks jittery. Maybe it should render as an overlay of some kind. |
I think apart from the loading jitter it looks great and I'll merge as soon as you address it! |
It's done. Please check again |
Thank you for pointing it out. I opened a pull request for that ( #386 ). |
Hi, Will be great to have Think on this:
First and Second rows share same dashboard but with different granularity/refresh time. |
Bumps [csstype](https://github.com/frenic/csstype) from 2.6.8 to 2.6.9. - [Release notes](https://github.com/frenic/csstype/releases) - [Commits](frenic/csstype@v2.6.8...v2.6.9) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [csstype](https://github.com/frenic/csstype) from 2.6.8 to 2.6.9. - [Release notes](https://github.com/frenic/csstype/releases) - [Commits](frenic/csstype@v2.6.8...v2.6.9) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [csstype](https://github.com/frenic/csstype) from 2.6.8 to 2.6.9. - [Release notes](https://github.com/frenic/csstype/releases) - [Commits](frenic/csstype@v2.6.8...v2.6.9) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [csstype](https://github.com/frenic/csstype) from 2.6.8 to 2.6.9. - [Release notes](https://github.com/frenic/csstype/releases) - [Commits](frenic/csstype@v2.6.8...v2.6.9) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
No description provided.