Skip to content

Show yanked reason on release page#15078

Merged
miketheman merged 4 commits intopypi:mainfrom
cofiem:feature/show-yanked-reason
Dec 19, 2023
Merged

Show yanked reason on release page#15078
miketheman merged 4 commits intopypi:mainfrom
cofiem:feature/show-yanked-reason

Conversation

@cofiem
Copy link
Copy Markdown
Contributor

@cofiem cofiem commented Dec 17, 2023

Releases that have been yanked can include a reason. This reason is not currently displayed on the PyPI website.

For releases that have been yanked, show the yanked reason in a callout box on the project's release page.

Closes #9837

See screenshot for an example.
image

@cofiem cofiem requested a review from a team as a code owner December 17, 2023 09:11
Copy link
Copy Markdown
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

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

Generally good - had a question about the color choice.

Comment thread warehouse/templates/packaging/detail.html Outdated
@miketheman miketheman added UX/UI design, user experience, user interface feature request labels Dec 18, 2023
Copy link
Copy Markdown
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

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

Excellent, looks great! Thanks!

@miketheman miketheman enabled auto-merge (squash) December 19, 2023 14:36
@miketheman miketheman merged commit 3ae11a3 into pypi:main Dec 19, 2023
@miketheman
Copy link
Copy Markdown
Member

Keep in mind that due to caching, this may not appear on existing yanked releases until their cache expires.
Any new yanked releases automatically purge their cached page.

@di
Copy link
Copy Markdown
Member

di commented Dec 19, 2023

We might want to think about finding a way to render links when they are present in the yank reason, e.g. https://pypi.org/project/pip/21.2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request UX/UI design, user experience, user interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Public release history and release page do not show yanked reason

3 participants