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

Simplify versions ordering in GET /api/v1/crates/{name} endpoint #10298

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

eth3lbert
Copy link
Contributor

This changes the sorting of crate.versions. Previously, we sorted versions by semver, which is more computationally expensive compared to sorting by id/date, which can be achieved more easily directly from the database. While this change alters the sorting order, it still provides consistent output and eliminates the need for double semver sorting.

This changes the sorting of `crate.versions`. Previously, we sorted
versions by semver, which is more computationally expensive compared to
sorting by id/date, which can be achieved more easily directly from
the database. While this change alters the sorting order, it still
provides consistent output and eliminates the need for double semver
sorting.
@Turbo87 Turbo87 changed the title Tidy crate metadata Simplify versions ordering in GET /api/v1/crates/{name} endpoint Jan 3, 2025
@Turbo87 Turbo87 merged commit 8e55b04 into rust-lang:main Jan 3, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants