-
Notifications
You must be signed in to change notification settings - Fork 3
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
Warn about changing a version slug #561
Conversation
@@ -53,7 +53,7 @@ <h2 class="ui medium dividing header"> | |||
<div class="content"> | |||
{% if version.active %} | |||
<div class="ui warning message"> | |||
{% trans "Deactivating a version will result in the deletion of its documentation." %} | |||
{% trans "Deactivating a version or changing its slug will result in the deletion of its documentation." %} |
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.
We should make this more visible and mention it on the slug field itself probably. This is a good start, but I think we want to be really explicit here.
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.
I would keep it here since we already have this warning in place. However, I think we should also update the help_text
of the slug field so it's shown on the field itself as well.
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.
I think we are better by just showing a pop-up in js when the slug is changed, asking for confirmation (maybe a task for someone with more frontend skills). Another option is maybe have a separate form to change the slug.
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.
I think I'm OK with this change to start, if it unblocked the change for this deploy and we work to improve the warning.
Ref readthedocs/readthedocs.org#11930