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

Fix JSON endpoint 404 when only yanked releases are available #9411

Merged
merged 5 commits into from
Apr 22, 2021
Merged

Fix JSON endpoint 404 when only yanked releases are available #9411

merged 5 commits into from
Apr 22, 2021

Conversation

AustinTSchaffer
Copy link
Contributor

@AustinTSchaffer AustinTSchaffer commented Apr 22, 2021

Fixes #8966

This PR removes the check on "yanked" from the filter clause and adds it to the order by clause in the JSON endpoint's releases query. This ensures that yanked releases are returned from the DB query, but are prioritized lower than all other release variants.

This PR also adds unit tests for this behavior.

@di di merged commit 011cdf2 into pypi:main Apr 22, 2021
@di
Copy link
Member

di commented Apr 22, 2021

Thanks!

@AustinTSchaffer AustinTSchaffer deleted the fix/yanked-only-404 branch July 6, 2021 14:04
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.

JSON endpoint for project is 404 if only yanked releases are available
2 participants