This will be most relevant to drupal.org (or websites where the projects are actually Drupal modules). Basically it would be a good idea to have:

  • a list of modules that are required to be installed in order to use a module (the "dependencies"),
  • a list of modules that require a particular module (the "dependants"),
  • a list of modules that "somehow interacts" with a module (that is, "optional dependencies").

All this data besides the optional dependencies are already stored in the .info files, we just need to pull them out and store it in the database. Right now the maintainers use regular webpages for this, which can get unwieldy at times (e.g. http://groups.drupal.org/rules/rules-modules ), not to mention the extra clerical work needed to maintain such a list.

There are many benefits of having this data available, such as having a better grasp of the popularity of a module, and just to see how modules in Drupal all work together. (A simple look at the dependants of Views module will be able to tell us how much it can be extendable.)

For the interface, a simple list like http://www.archlinux.org/packages/extra/x86_64/cups/ should be nice enough. (Optional modules can be just marked as "optional", with some remarks of why they are so.)

Also if this data is made public it can be used by utilities such as drush to automatically download necessary dependencies.

Comments

Damien Tournoud’s picture

Title: Dependency graph of projects » Expose the dependencies on the project page
Project: Project » Project Dependency
Component: Projects » Code

We do have all the data in the database now :) Re-assiging to the proper place.

rfay’s picture

Should this just be a block on the project page?

The one complexity is that different releases can have different dependencies. We *could* show only the dependencies of the releases that are actually shown on the project page (if we can figure that out). It could also be done down with the releases (a "dependencies" link?)

I definitely support this and would be happy to work with anybody wanting to make it happen on d.o

dww’s picture

Status: Active » Closed (duplicate)