Skip to content

Fix missing unverified URLs #16531

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

Merged
merged 6 commits into from
Aug 21, 2024
Merged

Conversation

facutuesca
Copy link
Contributor

Currently, verified and unverified URLs are shown by getting them from a Release object using the Release.urls_by_verify_status() method. However, this method only takes into account URLs in Release._project_urls, ignoring the fields Release.home_page and Release.download_url, which means the URLs in those two fields are not displayed (unless the URLs are also present in _project_urls)

Since those two fields are currently just str and do not store any verification information, we should consider them as unverified and return them when the user calls Release.urls_by_verify_status(False), unless they happen to also be present in _project_urls as verified URLs.

This PR fixes Release.urls_by_verify_status so that it also includes Release.home_page and Release.download_url in the list of unverified URLs, iff those URLs are not verified in Release._project_urls.

cc @woodruffw

@facutuesca facutuesca requested a review from a team as a code owner August 20, 2024 23:34
@facutuesca facutuesca force-pushed the fix-missing-unverified-urls branch from 0f6d0ed to a80c853 Compare August 21, 2024 15:30
Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

Thanks @facutuesca, nice work!

@woodruffw woodruffw added the UX/UI design, user experience, user interface label Aug 21, 2024
@di di enabled auto-merge (squash) August 21, 2024 17:27
@di di merged commit 98b4b84 into pypi:main Aug 21, 2024
18 checks passed
@di di deleted the fix-missing-unverified-urls branch August 21, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX/UI design, user experience, user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants