Configuration in config/ includes UUIDs and hard dependencie should be in config/optional/

Created on 17 May 2025, 5 months ago
Updated 21 May 2025, 5 months ago

Problem/Motivation

The `wip` module stores its configuration files directly under the `config/` directory, without using the standard `config/optional/` structure.

Additionally, all `.yml` files include hardcoded `uuid:` values, which can cause issues when importing configuration into a different site or environment. UUIDs should be dynamically generated by Drupal to avoid conflicts.

As a result, enabling the module does not correctly import its configuration, and Paragraph types or other expected elements are not available after installation.

Steps to reproduce

1. Install a clean Drupal 10 or 11 site.
2. Require the `wip` module via Composer.
3. Enable it with `drush en wip`.
4. Observe that configuration is not imported (e.g., Paragraph types).
5. Check the folder `config/`:
- It exists directly under the module root.
- Files contain `uuid:` lines.

---

Proposed resolution

1. Move all configuration files from `config/` to `config/optional/`:

mkdir -p web/modules/custom/wip/config/optional
mv web/modules/custom/wip/config/*.yml web/modules/custom/wip/config/optional/

2. Remove all uuid: values from .yml files to allow Drupal to generate them on import:`:

find web/modules/custom/wip -name '*.yml' -exec sed -i '/^uuid:/d' {} +

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ดColombia diegodz Bogota

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024