Skip to content

feat: sanitize release names upon submission #2725

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JacobCoffee
Copy link
Member

@JacobCoffee JacobCoffee commented May 6, 2025

Description

  • Clean release name field to ensure no errors when loading release pages

Closes #2724

@JacobCoffee JacobCoffee requested a review from ewdurbin as a code owner May 6, 2025 15:19
@JacobCoffee JacobCoffee requested a review from Copilot May 6, 2025 15:19
Copilot

This comment was marked as abuse.

@ewdurbin
Copy link
Member

ewdurbin commented May 6, 2025

@JacobCoffee is there an issue associated with this PR? I mean it makes sense but hard to say if it is "correct" without some documenting reason.

@JacobCoffee
Copy link
Member Author

yeah sorry, i thought if i put it in the commit message it would link it

Copy link
Member

@ewdurbin ewdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend using a Validator rather than overriding clean.

@JacobCoffee JacobCoffee requested a review from ewdurbin May 6, 2025 15:33
@JacobCoffee
Copy link
Member Author

JacobCoffee commented May 6, 2025

doh...

before i do all the migrations and things, do you think overriding the name on the NameSlugModel and adding the validator is still the best path @ewdurbin? I'm okay with either just wanting to make sure

@JacobCoffee JacobCoffee changed the title feat: sanitze release names upon submission feat: sanitize release names upon submission May 6, 2025
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.

Enhancement: Sanitize release names to require string
2 participants