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

Correct normalization of Dynamic field names #16122

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

ewdurbin
Copy link
Member

@ewdurbin ewdurbin commented Jun 17, 2024

#15631 introduced normalization of field names set in Dynamic to be str.title()ified, but did not update the ENUM used:

https://github.com/pypi/warehouse/pull/15631/files#diff-bffd49e4f943217b54b4cfcf5835737bec7a145360bd1dc2ec1541d2dcafad16R717

This led to the incorrect string being sent to the DB for the Dynamic ENUM when it was any of the following: Home-Page, Download-Url, Author-Email, Maintainer-Email, or Project-Url.

This PR sets the strings in the Enum to be all title()ified and renames any existing values.

Closes #16120

This led to the incorrect string being sent to the DB for the Dynamic ENUM when it was any of the following: `Home-Page`, `Download-Url`, `Author-Email`, `Maintainer-Email`, or `Project-Url`.

This PR sets the strings in the Enum to be all `title()`ified and renames any existing values.
@ewdurbin ewdurbin requested a review from a team as a code owner June 17, 2024 14:32
@ewdurbin ewdurbin merged commit 331c0dc into main Jun 17, 2024
17 checks passed
@ewdurbin ewdurbin deleted the correct_dynamic_field_name_normalization branch June 17, 2024 15:05
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.

Unable to upload package to pypi or testpypi
2 participants