docs.rs icon indicating copy to clipboard operation
docs.rs copied to clipboard

owner link to team doesn't link to team

Open kzhui125 opened this issue 2 years ago • 2 comments

https://docs.rs/aes/0.8.3/aes/

image image

the repo is https://github.com/RustCrypto/block-ciphers

url is https://github.com/RustCrypto

kzhui125 avatar Dec 07 '23 01:12 kzhui125

this is actually a bug, it seems like we never started supporting teams with their proper links :)

To wrap up how a solution would look like:

  • RegistryApi::get_owners has to be extended to fetch the kind (team or user) from the crates.io API
  • the kind has to be stored in the database (can we write a migration to backfill the correct kind for existing owners?), see update_owners_in_database.
  • based on the owner kind, we can render a different link in the dropdown (templates/rustdoc/topbar.html )

syphar avatar Dec 07 '23 17:12 syphar

@rustbot claim

Tyrubias avatar Feb 19 '24 08:02 Tyrubias