Skip to content

Reverse dependencies page shows gems once per platform #5199

Open
@Earlopain

Description

Steps to Reproduce

For example pry https://rubygems.org/gems/pry/reverse_dependencies

image

rest-client publishes for 4 platforms, so it appears 4 times in that list.

Expected Behavior

Show each gem only once

Current Behavior

The gem appears as often as it publishes for different platforms

Possible Solution

Would be somewhere here I suppose

has_many :incoming_dependencies, -> { where(versions: { indexed: true, position: 0 }) }, class_name: "Dependency", inverse_of: :rubygem

Can't just add platform: "ruby" though (I think)

Additional Context

There's a bit of a problem here. it's possible for platform-specific gems to have their own set of dependencies. For example, nokogiri depends on mini_portile2 only for the generic ruby platform.

I still think it's better to dedupe instead of showing the same thing multiple times without any difference.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions