-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widgets API is called when loading a dashboard #4341
Comments
Those POST requests come from the |
But why they happen on every load? Shouldn't it happen once, get updated, and then not happen again until something changes with the layout? |
You have a point, the function that seems to be triggering changes in the layout is this one: redash/client/app/services/dashboard.js Lines 36 to 78 in 80878ab
I'll investigate this further, but so far it seems to be updating the |
Maybe we should remove this functionality, because layout might change often when auto-height is used and there is no harm in /not/ preserving it. |
Removed it in #4228, there indeed seems to be no harm in removing it and those POST requests stopped. |
Issue Summary
On some dashboards it happens more often than other, but I noticed that in some cases a POST request is made to some of the widgets on a dashboard when loading it.
Here's an example: https://redash-preview.netlify.com/dashboard/now-param
Technical details:
The text was updated successfully, but these errors were encountered: