superset icon indicating copy to clipboard operation
superset copied to clipboard

auto-refresh not working in standalone mode

Open andrejs82git opened this issue 2 years ago • 7 comments

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!

andrejs82git avatar Nov 13 '23 17:11 andrejs82git

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.

duyanhpro avatar Dec 07 '23 03:12 duyanhpro

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

Stefan781 avatar Mar 20 '24 10:03 Stefan781

I have the same problem.

gilazat avatar Apr 02 '24 07:04 gilazat

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 avatar Apr 02 '24 07:04 andrejs82git

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.

Stefan781 avatar Apr 02 '24 08:04 Stefan781

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

Robin-Brandt avatar May 17 '24 12:05 Robin-Brandt

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

ricardo-carvalho-setwin avatar Oct 10 '24 10:10 ricardo-carvalho-setwin