-
Notifications
You must be signed in to change notification settings - Fork 7
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
Replace setKioskmode() with &kiosk query param #54
base: main
Are you sure you want to change the base?
Replace setKioskmode() with &kiosk query param #54
Conversation
d7fd69b
to
d841563
Compare
d841563
to
ddd14d4
Compare
What is the point of loadDashboard() in grafana-studio.js? https://github.com/grafana-toolbox/grafanimate/blob/main/grafanimate/grafana-studio.js#L99-L108 Is it to support login or? For me it would make sense to delete the javascript version. |
Thank you very much. What do you think about this patch, @maurerle? |
So I am fine with removing this :) Login does currently rely on one request to do the login and a second python request to show the dashboard - while the grafana-studio.js is injected freshly into the page, so this does not rely on the js version of loadDashboard as well. Did you test this? Then it is fine from my side :) |
I mean I used to set the full dashboard URL from GRAFANA_URL, completely removing the need for loadDashboard() to generate the URL. Never quite understood the need for dashboard uid param. I do not use or test login with grafana builtin auth, I instead use reverse proxy auth using oauth2-proxy. And I just bypass the auth when running grafanimate. I am using this code locally and have tested it, but may not have tested everything like login, and have made other changes also. |
@intermittentnrg would you like to rebase the PR and set it ready? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Approving this, as there are no other objections. If someone needs the features you may remove hereby, it will not be too difficult to bring them back.
Alternative to #53
Probably need to update loadDashboard() in grafana-studio.js also.