Double-named namespace for Elasticsearch Helper related standalone projects

Created on 21 September 2023, about 1 year ago
Updated 7 February 2024, 10 months ago

Problem/Motivation

The Elasticsearch Helper module in version 8.x-6.x contained several sub-modules, and currently they have the following composer namespace:

- Elasticsearch Helper AWS (drupal/elasticsearch_helper_aws)
- Elasticsearch Helper Content (drupal/elasticsearch_helper_content)
- Elasticsearch Helper Instant (drupal/elasticsearch_helper_instant)
- Elasticsearch Helper Views (drupal/elasticsearch_helper_views)

Since the release of Elasticsearch Helper 8.x-7.x these submodules are standalone projects on drupal.org, and are not included in the Elasticsearch Helper module package. Their composer package names are now double-named:

- Elasticsearch Helper AWS (drupal/elasticsearch_helper_aws-elasticsearch_helper_aws)
- Elasticsearch Helper Content (drupal/elasticsearch_helper_content-elasticsearch_helper_content)
- Elasticsearch Helper Instant (drupal/elasticsearch_helper_instant-elasticsearch_helper_instant)
- Elasticsearch Helper Views (drupal/elasticsearch_helper_views-elasticsearch_helper_views)

The standalone projects are updated to have the support for current Elasticsearch 8 version with additional features, and their release is blocked by the inconsistent double-named namespace.

Steps to reproduce

1. Run composer show -a drupal/elasticsearch_helper_views and see that the submodule package is a metapackage for elasticsearch_helper module.
2. Run composer show -a drupal/elasticsearch_helper_views-elasticsearch_helper_views and see that it represents the standalone module.

Proposed resolution

The Elasticsearch Helper module version 8.x-6.x is 5 years old, and it only supports the outdated Elasticsearch 6 version. I believe the impact from the namespace change will not be noticeable.

My suggestion is to rename the double-named package namespace to contain only the standalone module name:

drupal/elasticsearch_helper_aws
drupal/elasticsearch_helper_content
drupal/elasticsearch_helper_instant
drupal/elasticsearch_helper_views

For legacy sub-modules, I propose to prefix the sub-module name with the main package name:

drupal/elasticsearch_helper-elasticsearch_helper_aws
drupal/elasticsearch_helper-elasticsearch_helper_content
drupal/elasticsearch_helper-elasticsearch_helper_instant
drupal/elasticsearch_helper-elasticsearch_helper_views

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇱🇻Latvia maijs

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

Comments & Activities

Production build 0.71.5 2024