Skip to content
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

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Jan 28, 2025

@stsewd stsewd requested a review from a team as a code owner January 28, 2025 18:34
@stsewd stsewd requested a review from agjohnson January 28, 2025 18:34
@@ -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." %}
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@ericholscher ericholscher left a 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.

@stsewd stsewd merged commit b3ed3cf into main Feb 4, 2025
4 checks passed
@stsewd stsewd deleted the warn-about-changing-slug branch February 4, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants