You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "andrejs82git (via GitHub)" <gi...@apache.org> on 2023/11/13 17:23:29 UTC

[I] auto-refresh not working in standalone mode [superset]

andrejs82git opened a new issue, #25970:
URL: https://github.com/apache/superset/issues/25970

   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!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "duyanhpro (via GitHub)" <gi...@apache.org>.
duyanhpro commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-1844202645

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "andrejs82git (via GitHub)" <gi...@apache.org>.
andrejs82git commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2031291187

   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.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2810793898

   Is this still an issue in 4.1.2 or newer?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-3152830247

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "Stefan781 (via GitHub)" <gi...@apache.org>.
Stefan781 commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2031345359

   > 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "ShivamYadav0 (via GitHub)" <gi...@apache.org>.
ShivamYadav0 commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-3327280005

   Facing same issue.
   Auto-refresh breaks when hideTitle: true.
   Any good workaround?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-4043475705

   The root cause seems to be that the auto-refresh timer is initialized inside the `DashboardHeader` component, so when standalone mode or `hideTitle: true` hides the header, the timer never gets a chance to start. This looks like a design coupling issue — ideally, auto-refresh behavior would be independent of whether the header is rendered.
   
   A good fix could involve moving the auto-refresh initialization out of `DashboardHeader` and into the dashboard container or a dedicated hook/effect that runs regardless of header visibility. The relevant frontend code is likely in `superset-frontend/src/dashboard/components/Header/` and the auto-refresh logic within it — might be worth exploring that area first.
   
   It would be great to see a PR addressing this! The issue has been around for a while (last activity approximately 5.5 months ago) and is clearly affecting a number of users. If anyone has bandwidth to investigate, the community would really appreciate it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #25970: auto-refresh not working in standalone mode
URL: https://github.com/apache/superset/issues/25970


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "gilazat (via GitHub)" <gi...@apache.org>.
gilazat commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2031233211

   I have the same problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "ricardo-carvalho-setwin (via GitHub)" <gi...@apache.org>.
ricardo-carvalho-setwin commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2404750316

   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "Robin-Brandt (via GitHub)" <gi...@apache.org>.
Robin-Brandt commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2117450912

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-3152838085

   <!-- Answer -->
   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.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/95be9c02-1eee-4dea-af09-d59174f8e323?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/95be9c02-1eee-4dea-af09-d59174f8e323?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/95be9c02-1eee-4dea-af09-d59174f8e323?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/95be9c02-1eee-4dea-af09-d59174f8e323?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/95be9c02-1eee-4dea-af09-d59174f8e323?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/95be9c02-1eee-4dea-af09-d59174f8e323?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/95be9c02-1eee-4dea-af09-d59174f8e323?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/25970)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "Stefan781 (via GitHub)" <gi...@apache.org>.
Stefan781 commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2009210158

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] auto-refresh not working in standalone mode [superset]

Posted by "prashik-ganer (via GitHub)" <gi...@apache.org>.
prashik-ganer commented on issue #25970:
URL: https://github.com/apache/superset/issues/25970#issuecomment-2830111669

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org