-
Notifications
You must be signed in to change notification settings - Fork 8
Replace setKioskmode() with &kiosk query param #54
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
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? |
amotl
left a comment
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.
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.
Hi again. It looks like this patch has been left behind. As there are no objections about merging it, we are inclined to bring it into mainline when tests pass and draft mode is gone.
@intermittentnrg: Would you like to refresh your patch and just remove the code you deactivated, to leave no clutter behind?
Alternative to #53
Probably need to update loadDashboard() in grafana-studio.js also.