-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Project: merge basic and advanced forms #11169
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.
Looks great to me! 💯
I would use a 302 redirect instead of a 301 just in case.
@@ -84,7 +83,9 @@ | |||
), | |||
re_path( | |||
r"^(?P<project_slug>[-\w]+)/advanced/$", | |||
ProjectAdvancedUpdate.as_view(), | |||
login_required( | |||
RedirectView.as_view(pattern_name="projects_edit", permanent=True), |
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.
RedirectView.as_view(pattern_name="projects_edit", permanent=True), | |
RedirectView.as_view(pattern_name="projects_edit"), |
Just in case we want to use /advanced/
URL for a different thing.
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.
Thoughts @agjohnson?
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.
Good question. I lean slightly towards non-permanent just because it won't be a heavily used redirect anyways. I don't see us reusing the URL either though, so permanent does seem safe.
@@ -251,6 +251,7 @@ class PublicProjectMixin(ProjectMixin): | |||
"/projects/pip/badge/": {"status_code": 200}, | |||
"/projects/invalid_slug/": {"status_code": 302}, | |||
"/projects/pip/search/": {"status_code": 302}, | |||
"/dashboard/pip/advanced/": {"status_code": 301}, |
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.
"/dashboard/pip/advanced/": {"status_code": 301}, | |
"/dashboard/pip/advanced/": {"status_code": 302}, |
* Project: merge basic and advanced forms Matches readthedocs/readthedocs.org#11169 * Update URL
I'm still missing checking how this looks on ext-theme.
Closes #11084