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

Ordering of releases in JSON API #3650

Closed
di opened this issue Apr 12, 2018 · 2 comments
Closed

Ordering of releases in JSON API #3650

di opened this issue Apr 12, 2018 · 2 comments
Labels
APIs/feeds blocked Issues we can't or shouldn't get to yet feature request help needed We'd love volunteers to advise on or help fix/implement this.

Comments

@di
Copy link
Member

di commented Apr 12, 2018

From pypi/legacy#171

Originally reported by: Aaron Meurer (Bitbucket: asmeurer, GitHub: asmeurer)


One thing that the json API lacks compared to the xmlrpc API is the ordering of releases. In the json API, the releases are keys in a dictionary, and hence unordered.

The tarballs have upload times, but a release can have multiple tarballs, and also if I'm not mistaken you can upload a tarball to an old release.

The xmlrpc API has package_releases(package_name, show_hidden=False). The json API could have a package_releases key with a list of releases. I don't know how to handle hidden releases.


@di di added the APIs/feeds label Apr 12, 2018
@brainwane brainwane added help needed We'd love volunteers to advise on or help fix/implement this. feature request labels Apr 13, 2018
@brainwane brainwane added this to the 6. Post Legacy Shutdown milestone Apr 15, 2018
@di
Copy link
Member Author

di commented Apr 19, 2018

More or less blocked on #284.

@di di added the blocked Issues we can't or shouldn't get to yet label Apr 19, 2018
@miketheman
Copy link
Member

Related: #6570 (comment)

Recommending closing both, since JSON is explicitly unordered, and Python's behavior provides the desired end result.

@dstufft dstufft closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIs/feeds blocked Issues we can't or shouldn't get to yet feature request help needed We'd love volunteers to advise on or help fix/implement this.
Projects
None yet
Development

No branches or pull requests

4 participants