Skip to content

Simplify crate.version route implementation #3175

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 7 commits into from
Jan 14, 2021

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 12, 2021

This PR adds a defaultVersion property on the crate model and uses it in the crate.version (and crate.index) route to determine which version to display by default. This lets us get rid of the semver dependency in that route and puts the backend in charge of telling us what to display by default. This will allow us to address #654 in the near future, since the new defaultVersion property can be used in the search results too.

This is probably best reviewed commit-by-commit :)

r? @pichfl

@pichfl
Copy link

pichfl commented Jan 14, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Jan 14, 2021

📌 Commit 52f086f has been approved by pichfl

@bors
Copy link
Contributor

bors commented Jan 14, 2021

⌛ Testing commit 52f086f with merge f3b5d99...

@bors
Copy link
Contributor

bors commented Jan 14, 2021

☀️ Test successful - checks-actions
Approved by: pichfl
Pushing f3b5d99 to master...

@bors bors merged commit f3b5d99 into rust-lang:master Jan 14, 2021
@Turbo87 Turbo87 deleted the default-version branch January 15, 2021 13:54
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.

4 participants