Extend page module dependencies do not match actual / composer

Created on 30 July 2024, 9 months ago
Updated 14 August 2024, 8 months ago

Problem/Motivation

I wanted to check required modules and uninstall unnecessary ones. When I go to my admin/modules page and look at the information on what modules each installed module requires, the information doesn't match what composer info shows.

For example, for pathauto, the admin page shows Path, Path alias, and Token as required, but composer shows "drupal/core", "drupal/ctools" and "drupal/token" as required (and "drupal/redirect" as suggested). I understand that path and path_alias are part of core, but why does the Extend (modules) page not show ctools (Chaos Tools) as required? And the other side, Chaos Tools doesn't show Pathauto in its "Required by" line either.

Steps to reproduce

  1. Using composer, install Pathauto module if not already present.
  2. Go to /admin/modules
  3. Look at "Requires" info for Pathauto module
  4. Look at "Required by" info for Chaos Tools module
  5. cd web-root/..
  6. composer info drupal/pathauto
  7. Look at "requires" section

Proposed resolution

The displayed info on the Extend / modules page should match the actual requirements as shown by composer.

Remaining tasks

Add the ctools dependency to the pathauto.info.yml file.

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

💬 Support request
Status

Fixed

Version

1.0

Component
Extension 

Last updated 1 day ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024