In the public dashboards, if the user changes the global parameters, the visualization keeps showing refreshing. After refreshing the whole page or re-entering the page, the parameters work. Are there any system settings that need to be adjusted?
I checked the network tab in the browser, after changing the parameter all the requests with the name results have the status code 200 and in the response, the stage is 1, and the result is null, like below show:
Hmmm something sounds wrong there. It’s completely normal for the result to be null in this request. Sounds the front-end just stops polling the jobs api for a new result. Which explains your behavior. Odd that we haven’t seen this reported elsewhere.
re: V10 it’s best to use the latest version of Redash because that’s the one that receives the most development attention and fixes
So you mean the in the public dashboard page, normally it keeps sending the request to poll the jobs API? However, on our side, we have to refresh the whole page… Do we need to play with some environment parameters(like FRAME_OPTIONS , FRAME_OPTIONS_ALLOW_FROM , CONTENT_SECURITY_POLICY , etc.)? Or you’d more suggest double-checking our HTTPS settings? Thanks!
Oh, there is one more thing I forgot to mention, the server was down days ago, and I only restart the server. Will this cause the issue? Do I actually need to back up the PostgreSQL and run docker compose build to rebuild all the services?
I just tried to restart the scheduler and worker separately, now in the public dashboard page, now I see some responses containing the data, however, the dashboards are still showing the loading logo without any update.
One more thing, during the dashboard showing the loading logo, if I change to some other parameters, there was no request made, looks like it stuck somewhere.
The important question we still don’t have an answer for is why the widgets do not appear to be polling the server for updated result. Do you see anything in your browser console?
@jesse The thing is that the public dashboard doesn’t update the viz. As you can see in the screenshot, it just keeps showing the loading or refreshing logo but the viz didn’t change
just to clarify the publish dashboard means the dashboard opened using the secret address generated by share Dashboard -> Allow public access. On the ReDash dashboard page, everything works fine.
So you mean if users want to play with the parameters on the public dashboard, we have to play with all the parameters on the ReDash dashboard page first to make some cache there. And then when they change parameters on the public dashboard the viz will load properly since it can fetch the cache in metadata db. Am I right?
Pretty much. This was improved in V10 somewhat so that all but text parameters are considered safe. But overall this isn’t a use-case we support very well. If you want people to execute queries they need to be logged-in. Redash isn’t built for embedded analytics.
Hmmm…I just had a quick try. Like on the ReDash dashboard page I set my parameter to a certain value and it works properly as usual, and then on the public dashboard I put the exact same parameter, the viz still loads forever…Probably need to upgrade to V10 as you mentioned it has better support. Can you show me a tutorial about upgrading? We already have many queries and dashboards there, just afraid of losing some data.