Skip to content

Fetch readme from source archive if available for crate details page #2146

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 2 commits into from
Aug 2, 2023

Conversation

Nemo157
Copy link
Member

@Nemo157 Nemo157 commented Jun 7, 2023

Fixes #1866 and will allow to stop storing the readme in the database for new builds

@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Jun 7, 2023
@Nemo157 Nemo157 force-pushed the source-archive-readme branch from a5e7032 to e1b278f Compare June 7, 2023 19:17
@Nemo157 Nemo157 force-pushed the source-archive-readme branch from e1b278f to 659b937 Compare June 7, 2023 19:38
Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome improvement! thank you for working on this!

IMO the performance change is small-ish, since

  • file-exist queries are executed on the local archive index, so at most 2 S3 requests are executed. ( 3 when we start cleaning local indexes)
  • the page is cached in the CDN anyways

I had some small comments & questions.

@syphar syphar added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Jun 14, 2023
A missing readme is ignored, other errors are reported to sentry
@Nemo157 Nemo157 added S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Aug 1, 2023
@syphar syphar self-requested a review August 2, 2023 05:42
@syphar syphar merged commit 6c42373 into rust-lang:master Aug 2, 2023
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Aug 2, 2023
@Nemo157 Nemo157 deleted the source-archive-readme branch August 2, 2023 17:48
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to increase a README character limit?
2 participants