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

Migrate from [DocsRs]' builds API to status API #9422

Merged
merged 1 commit into from
Jul 30, 2023

Conversation

Nemo157
Copy link
Contributor

@Nemo157 Nemo157 commented Jul 30, 2023

To simplify refactoring how our builds are processed I want to remove the /builds.json endpoint on docs.rs. As a replacement I added a new endpoint simply giving the status that sites like shields.io wants: are there docs for this version available to link to. This also fixes some small issues with the old endpoint (some edgecases meant the first build was successful but there were no docs, or there were docs but the first build was marked unsuccessful).

@github-actions
Copy link
Contributor

Warnings
⚠️ This PR modified service code for docsrs but not its test code.
That's okay so long as it's refactoring existing code.
Messages
📖 ✨ Thanks for your contribution to Shields, @Nemo157!

Generated by 🚫 dangerJS against a091c6d

@github-actions
Copy link
Contributor

🚀 Updated review app: https://pr-9422-badges-shields.fly.dev

@chris48s chris48s added the service-badge Accepted and actionable changes, features, and bugs label Jul 30, 2023
@chris48s
Copy link
Member

Thanks. Merging 👍

Just a quick comment on the endpoint: It is not a problem for us because we just look at the status code and discard the body for the not found cases, but it would be nicer if the 404 responses like https://docs.rs/crate/not-a-crate/latest/status.json and https://docs.rs/crate/regex/not-a-version/status.json returned a JSON response rather than HTML.

@chris48s chris48s added this pull request to the merge queue Jul 30, 2023
Merged via the queue into badges:master with commit 2e2959a Jul 30, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants