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

Auto-refreshing cells #33

Open
simonw opened this issue Mar 15, 2021 · 1 comment
Open

Auto-refreshing cells #33

simonw opened this issue Mar 15, 2021 · 1 comment
Labels

Comments

@simonw
Copy link
Owner

simonw commented Mar 15, 2021

Since a cell has a SQL query, and is tied to a server-side template, it wouldn't be too hard to provide a mechanism whereby the cell periodically polls the server to refresh itself.

@simonw
Copy link
Owner Author

simonw commented May 8, 2021

I think I'd keep this off by default.

This could work by JavaScript adding a "refresh every 10s / 60s / 5m" UI widget to each cell - when selected, every x seconds a POST request is made back to the server with just the SQL for that cell (or maybe the cell reference if it's a saved dashboard - support this just for saved dashboards may be easier).

The backend knows how to return the rendered widget template for just this one item, which can then be innerHTML updated on the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant