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

Make /crate/:crate/latest/builds.json not strip .json suffix #1258

Merged
merged 4 commits into from
Jan 23, 2021
Merged

Make /crate/:crate/latest/builds.json not strip .json suffix #1258

merged 4 commits into from
Jan 23, 2021

Conversation

coolshaurya
Copy link
Contributor

Fixes #170 .

@jyn514
Copy link
Member

jyn514 commented Jan 22, 2021

@syphar the "I'm feeling lucky" test has been failing intermittently, do you have time to fix it? I think the issue is we have a much lower percentage of crates with over 100 stars in the test database, you could make it configurable by moving 500 into a query parameter and passing in a different number in tests.

@jyn514 jyn514 added A-backend Area: Webserver backend S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Jan 22, 2021
@syphar
Copy link
Member

syphar commented Jan 22, 2021

@jyn514 I have time and can figure something out.

@syphar
Copy link
Member

syphar commented Jan 22, 2021

(will do a separate PR)

@jyn514
Copy link
Member

jyn514 commented Jan 22, 2021

Can you add a test for the new behavior? You can see examples at the bottom of src/web/mod.rs

@jyn514
Copy link
Member

jyn514 commented Jan 23, 2021

Looks great, thanks!

@jyn514 jyn514 merged commit 97fde48 into rust-lang:master Jan 23, 2021
@coolshaurya coolshaurya deleted the 2021_01_22 branch January 23, 2021 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend Area: Webserver backend S-waiting-on-author Status: This PR is incomplete or needs to address review comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/crate/:crate/latest/builds.json strips the .json suffix
3 participants