-
Notifications
You must be signed in to change notification settings - Fork 15.3k
fix(dashboard): Remove 308 redirect when creating new dashboards #28754
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: master
Are you sure you want to change the base?
Conversation
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.
Alternatively, we could change the backend superset/superset/views/dashboard/views.py Line 117 in 6575cac
/new instead of /new/ and I think that would work too.
|
Hello everyone, I would like to know if this PR has been reviewed or if an alternative solution has been found? We currently have the same issue (superset version 4.0.6). |
fwiw, it should also be possible to add |
HI @dpgaspar |
SUMMARY
Currently, a request for a new dashboard (hitting /dashboard/new) will respond with a 308 permanent redirect because the UI hits
/dashboard/new
even though the backend exposes/dashboard/new/
superset/superset/views/dashboard/views.py
Line 117 in 6575cac
Flask handles this case by responding with a 308 to the exposed version https://flask-cn.readthedocs.io/en/stable/api/#flask.Flask.route.
This PR changes routes in the frontend from
/dashboard/new
to/dashboard/new/
so that requests can be made without a 308 redirect.In our infrastructure setup, there's a problem with the 308 redirect and it points to an invalid address. I believe others have seen this problem as well in this issue #20577.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Reproduction Steps
/dashboard/new
redirectionBefore

After

TESTING INSTRUCTIONS
See Reproduction Steps in section above
ADDITIONAL INFORMATION