Unnecessary dependencies installed when only using base module

Created on 9 June 2025, about 1 month ago

Problem/Motivation

When installing the Content Insights Report module using Composer, the drupal/group module and its dependencies (entity and flexible_permissions) are always installed even if you're only using the base module functionality without the content_insights_report_group submodule.

The main module's content_insights_report.info.yml only depends on drupal:node, but the composer.json requires drupal/group for both the main package and development, causing unnecessary modules to be installed on sites that don't use the group functionality.

Also, I noticed that the main module requires drupal/group:^2.3, but the submodule content_insights_report_group requires drupal/group:^3.

Proposed resolution

- Move the Group dependency from the main module's composer.json to the "suggest" section.
- Ensure consistent versioning between the main module and submodule.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States torfj Seattle, WA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024