Skip to content

Reverse dependencies #23

Open
Open

Description

@w4

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

Activity

  1. w4 commented on Sep 28, 2021

    @w4
    OwnerAuthor

    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.

  2. added a commit that references this issue on Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions