Skip to content

Have a "one-click" removal option for admins to remove a version across both crates.io and docs.rs #368

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

Closed
carols10cents opened this issue Jun 13, 2019 · 6 comments
Labels
C-enhancement Category: This is a new feature

Comments

@carols10cents
Copy link
Member

Recently, we had a trademark violation crate we needed to take down. We took care of crates.io, but that didn't remove the crate from docs.rs.

The short-term solution for this issue could be documenting the exact procedures/commands/etc that should happen manually when we need to remove a version or an entire crate, across both crates.io and docs.rs.

The long-term solution for this issue could be creating a button/command/something for admins of crates.io to quickly remove a version or all versions of a crate that removes the same content from docs.rs automatically.

This is a sibling issue of rust-lang/crates.io#1764, filed in both places so we can collaborate ❤️

@carols10cents
Copy link
Member Author

@jyn514
Copy link
Member

jyn514 commented Jul 6, 2020

The short-term solution for this issue could be documenting the exact procedures/commands/etc that should happen manually when we need to remove a version or an entire crate, across both crates.io and docs.rs.

This is documented at https://forge.rust-lang.org/docs-rs/maintenance.html#removing-a-crate-from-the-website. It requires someone with admin access to the server, currently me or @pietroalbini. There's an up-to-date list at https://forge.rust-lang.org/infra/docs/docs-rs.html.

The long-term solution for this issue could be creating a button/command/something for admins of crates.io to quickly remove a version or all versions of a crate that removes the same content from docs.rs automatically.

@pietroalbini suggested a web API. Since he's the one currently in charge of deleting crates he volunteered to help write it if he gets tired of doing it manually.

@jyn514
Copy link
Member

jyn514 commented Jul 6, 2020

By the way, the crates-io-cargo-teams link is broken.

@jyn514
Copy link
Member

jyn514 commented Jul 16, 2020

#285 suggested that docs.rs delete crates automatically when they're deleted from crates.io by looking at the index. This would need support from crates-index-diff, but otherwise seems simpler to me than webhooks or anything like that.

@jyn514
Copy link
Member

jyn514 commented Jul 31, 2020

The way to do this while logged into the server is cratesfyi database delete version <crate name> <version> && cratesfyi database update-registry-fields <crate name>. There is still no webhook or anything like that.

@syphar
Copy link
Member

syphar commented Jan 11, 2023

since we execute release-deletes and crate-deletes on docs.rs, when they are deleted from the index,

I assume this is done.

@syphar syphar closed this as completed Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: This is a new feature
Projects
None yet
Development

No branches or pull requests

3 participants