Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reverse dependencies #23

Open
w4 opened this issue Sep 26, 2021 · 1 comment
Open

Reverse dependencies #23

w4 opened this issue Sep 26, 2021 · 1 comment

Comments

@w4
Copy link
Owner

w4 commented Sep 26, 2021

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
Copy link
Owner Author

w4 commented Sep 28, 2021

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 added a commit that referenced this issue Sep 28, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant