-
Notifications
You must be signed in to change notification settings - Fork 602
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
Improve admin::render_readmes #4095
Comments
It might be unused in the Rust portion of the codebase, but I think the search functionality uses the column inside of SQL query. 😉 |
Aha. Makes sense! Search functionality would make fantastic use of that column. Moving readme column to the versions table would certainly help us regenerate old readmes. Would it be beneficial for the user to be able to search through past versions of readmes as well? |
oh... to be honest, I wasn't aware the that certainly complicates things. and I guess it explains why the
Yeah, adding a
It's probably sufficient to only be able to search in the README of the most recent release. |
Support relative URLs from repo-subdirectory packages Extract `.cargo_vcs_info.json` from the tarball and use it to determine the path in vcs. Support for this was added to cargo with rust-lang/cargo#9866 Fixes #3484 (note that support for this in admin::render_readmes not yet exists - would come with #4095) Depends on #4097 (Because of community/community#4477 - github ends up rendering the diffs together. Go to the commits tab and just look at the most recent commits to review).
From @Turbo87 in discord:
In this strategy
Ideally admin::render_readmes does not download the crate at all.
Requires a one-off script to backfill columns to the
versions
andcrates
table from the downloaded crate.If we want to support rerunning
admin::render_readmes
on older versions of crates - we would need to move thereadme
column to the versions table (currently it's incrates
table - only the latest version of readme is persisted - overwritten every time a new version is uploaded - never used).Alternate strategy
Opted against this strategy in the discussion so far, but putting it here for completeness. If we considered going with this - which would enable things like #3971 and #3972
Don't use the readme column of
crates
(I've just confirmed that it's completely unused currently in the codebase afaict)Download old crates from crates.io to recalculate/find the readme again.
The text was updated successfully, but these errors were encountered: