chartered icon indicating copy to clipboard operation
chartered copied to clipboard

Reverse dependencies

Open w4 opened this issue 4 years ago • 1 comments

We have a dependents section on the crate page but it currently has placeholder text, so we need to implement reverse dependencies there. More importantly however, we need to make sure the user has the VISIBLE permission for each of these crates when pulling them

w4 avatar Sep 26 '21 18:09 w4

Don't think there's any cheap/elegant way of doing this at the moment, the way cargo informs us that a crate is from the same registry is passing registry as null for each dependency. But obviously it isn't aware of orgs, so we:

  1. have to guess whether or not the depedency is from chartered based on ssh://127.0.0.1:2233/core (check if begins with ssh://?), and
  2. we have to do a db lookup for each organisation passed to lookup by name and get the id for the db relationship.

bit of a pain really, think we should just hide the 'dependents' section for now.

w4 avatar Sep 28 '21 20:09 w4