auto-refresh not working in standalone mode
Hi! I trying create auto-refreshed dashbord via superset on my web site.
How to reproduce the bug
I tune public role for showing dashboard. I tune dashboard to use auto-refresh. If I reload page, the auto-refresh stil working. I use dashboard link http://host/superset/dashboard/1/?standalone=4 in iframe on my webpage.
And it works fine. But in standalone mode auto-refresh mode not working.
Expected results
The auto-refresh working. and charts in dashboard do refresh every 10 seconds.
Actual results
Auto-refresh not working. Charts freeze with data that was getted with loading page.
Environment
(please complete the following information):
- browser type and version: chrome 119.0.6045.124 (64 bit)
- superset version:
apache/superset:3.0.1 - any feature flags active:
FEATURE_FLAGS = {
"ENABLE_TEMPLATE_PROCESSING": True
}
Thanks!
I got same result. Dashboard doesn't auto-refresh when embeded in iframe.
One workaround is to refresh the iframe with javascript setInterval() in the external page, but this will clear the filters, so it's not a good solution.
Looking for a fix to this. Thanks.
We are having the same issue. Did anybody find a solution?
I have the same problem.
Hi!
I found half-solution.
With standalone=1 autorefresh is working.
We use that query params &standalone=1&show_filters=0&expand_filters=0".
And add css, in dashboard level, to hide no needed elements.
Hi!
I found half-solution. With standalone=1 autorefresh is working. We use that query params
&standalone=1&show_filters=0&expand_filters=0". And add css, in dashboard level, to hide no needed elements.
@andrejs82git I tested and it works, but this is not a solution for our use case as we need standalone=2.
Same issue here, can't use css to hide the menu action bar since I can't save the dashboard then
I'm experiencing the same issue. When using supersetEmbeddedSdk.embedDashboard, if I set hideTitle: true in dashboardUiConfig, the dashboard's auto-refresh stops working. However, when I set this option to false, the auto-refresh functions properly again