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

Periodically update the slices in the dashboard #374

Merged
merged 6 commits into from
Apr 21, 2016

Conversation

x4base
Copy link
Contributor

@x4base x4base commented Apr 19, 2016

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.402% when pulling 8819da6 on x4base:auto_update into afcdcf0 on airbnb:master.

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 8819da6 on x4base:auto_update into afcdcf0 on airbnb:master.

@philippfrenzel
Copy link

what happens if you go offline? Or you don't wanna have a refresh every 60 seconds?

@x4base
Copy link
Contributor Author

x4base commented Apr 19, 2016

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

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 1afe866 on x4base:auto_update into afcdcf0 on airbnb:master.

@x4base
Copy link
Contributor Author

x4base commented Apr 19, 2016

@philippfrenzel I added the UI so the user can choose the refresh interval now

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.402% when pulling 1afe866 on x4base:auto_update into afcdcf0 on airbnb:master.

@mistercrunch
Copy link
Member

I don't think the callback approach is necessary, the dashboard controller can manage this on its own.

@x4base
Copy link
Contributor Author

x4base commented Apr 20, 2016

@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?

@mistercrunch
Copy link
Member

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 Slice.done method.

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.

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 1626f14 on x4base:auto_update into afcdcf0 on airbnb:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.402% when pulling 1626f14 on x4base:auto_update into afcdcf0 on airbnb:master.

@x4base
Copy link
Contributor Author

x4base commented Apr 20, 2016

@mistercrunch I implemented it and added an upper bound of 5 seconds. Please check again

@mistercrunch
Copy link
Member

Nice! This is starting to look pretty solid. I'll do a more thorough round of review now.

@mistercrunch
Copy link
Member

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.

@mistercrunch
Copy link
Member

I think apart from the loading jitter it looks great and I'll merge as soon as you address it!

@x4base
Copy link
Contributor Author

x4base commented Apr 20, 2016

It's done. Please check again

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 3cfccd0 on x4base:auto_update into afcdcf0 on airbnb:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.402% when pulling 3cfccd0 on x4base:auto_update into afcdcf0 on airbnb:master.

@mistercrunch
Copy link
Member

img

@mistercrunch mistercrunch merged commit d8a2b62 into apache:master Apr 21, 2016
@gbrian
Copy link
Contributor

gbrian commented Apr 21, 2016

+1
What do you think about adding granularity & refresh control like Grafana:

image

Thanks

PS:
Typo on code:
i class="fa fa-clock-o" data-toggle="tooltip" title="Edit the dashboard's CSS">/i>

@x4base
Copy link
Contributor Author

x4base commented Apr 21, 2016

Thank you for pointing it out. I opened a pull request for that ( #386 ).
Also, are you mainly talking about the floating dialog like that, or the Quick ranges? Or a refresh interval selection box in the slice editing page?

@gbrian
Copy link
Contributor

gbrian commented Apr 21, 2016

Hi,
I mean both. Refresh is already added, I'll suggest having the availability to overwrite granularity as well.

Will be great to have Rows basically multiple dashboards so we can define refresh/granularity for different parts of the dashboard.

Think on this:

  • First row: Daily bookings KPI (refresehd each 5 min)
  • Second row: YTD / MTD / WTD KPI (refreshed each 1h)
  • Third row: Hostoric data (refreshed each 2 hours)

First and Second rows share same dashboard but with different granularity/refresh time.

zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
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>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
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>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
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>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
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>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.8.9 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.8.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants