apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
63.15k stars 13.99k forks source link

auto-refresh not working in standalone mode #25970

Open andrejs82git opened 1 year ago

andrejs82git commented 1 year ago

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):

Thanks!

duyanhpro commented 12 months ago

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.

Stefan781 commented 8 months ago

We are having the same issue. Did anybody find a solution?

gilazat commented 8 months ago

I have the same problem.

andrejs82git commented 8 months ago

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.

Stefan781 commented 8 months ago

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.

Robin-Brandt commented 6 months ago

Same issue here, can't use css to hide the menu action bar since I can't save the dashboard then

ricardo-carvalho-setwin commented 1 month ago

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