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!

Comment From: duyanhpro

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.

Comment From: Stefan781

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

Comment From: gilazat

I have the same problem.

Comment From: 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.

Comment From: Stefan781

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.

Comment From: Robin-Brandt

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

Comment From: ricardo-carvalho-setwin

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

Comment From: rusackas

Is this still an issue in 4.1.2 or newer?

Comment From: prashik-ganer

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

Thanks @ricardo-carvalho-setwin . This helped me :)

Comment From: rusackas

@dosu any thoughts on this one? Were any relevant PRs opened?

Comment From: dosubot[bot]

This issue is caused by how Superset implements auto-refresh: the timer is set up in the DashboardHeader component. If you use standalone modes or set hideTitle: true (which hides the header), the auto-refresh logic never runs—so charts won't refresh automatically. This is by design in the current codebase and hasn't changed in recent versions. There are no PRs that address or fix this specific behavior as of 4.1.2 or newer. The only workaround is to avoid hiding the header, or to refactor the auto-refresh logic out of the header if persistent auto-refresh is needed in embedded/standalone dashboards.

A recent PR (#29956) improved query refresh handling by aborting requests on timeout, but it doesn't address this header/auto-refresh linkage. For now, hiding the header disables auto-refresh, and there isn't an official workaround or config to change that behavior.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X