Problem/Motivation
When looking at modules, one of the metrics to know about quality is how many depend on that module. Also this is a great way to discover modules that extend the functionality of that module. It would be really great if we could that dependency information on project pages.
There are multiple reasons i'm asking for this:
- An extra metric to see how well used a module is.
- Discovery of extensions for a module without the need of an explicit mention of 'ecosystem'.
- Create more parity with the general php ecosystem since packagist/github etc all show this metric.
The reason I ran into this was also because of the d10readiness initiative. We need to test projects that depend on core modules that are getting removed. To find good candidates for these tests this information would be VERY helpful.
Steps to reproduce
Eh.
Proposed resolution
I would propose something modeled after packagist:
packagist.org/packages/drupal/core-recommended/dependents
Remaining tasks
- Agree on solution
- Agree on interface
- Implement
- ...
- Profit
User interface changes
New link on the project pages to list dependends of that project.
API changes
None.
Data model changes
None hopfully, this information should already be available somewhere.
Comments
Comment #2
catchDuplicate of #760890: Display module dependencies on project pages.
Comment #3
catchLooking at #760890: Display module dependencies on project pages more it mentions three things in the issue summary but only really does one, so it makes sense to have a separate issue.
Comment #4
catchComment #5
drummReleases have different dependencies for different versions. The project page would have to pick a single release, or show copies for each release under the releases table. Anything that’s actually release-specific should land on release pages first, then consider the project page later.
We have had dependencies on release pages before. It was removed because it was impacting performance. If we do anything, it should only show immediate dependents, not walk the whole dependency tree.
Release and project pages already show a lot of information. Their primary audience should be people using the project. Should this really be on the existing pages, or a link to see it on a separate page?
This would be a more-complex report. There are project and release pages for core, the straightforward implementation of this would show everything that depends on core, without going into components. Drupal Association engineering staff can always run these reports for core maintainers.
Comment #6
catchIMO the most useful thing would be a tab showing the latest release in each branch + the dependencies.
The specific use-case here is trying to find projects that depend on https://www.drupal.org/project/hal which has already been removed from core in 10.x (but is still in 9.x).
Comment #7
kopeboyI second catch, regardeless of the version, knowing which other modules are related is useful, both dependants and required (on which the module depends).