Empty settings added to all block configurations

Created on 3 August 2022, over 2 years ago
Updated 22 August 2024, 4 months ago

Problem/Motivation

The module adds empty configuration to every block (block.block.*.yml) configuration, and then becomes a dependency, even when a block visibility group is selected.

Steps to reproduce

* Enable the module.
* Open a block settings page, don't make any changes, save the page.
* Export the configuration.

Expected results:
* No changes are made to the configuration.

Actual results:
* The block definition is modified.
* The following is added to the "visibility" section:

  condition_group:
    id: condition_group
    negate: false
    block_visibility_group: ''

* The module is listed as a dependency on the block.

Proposed resolution

Empty settings are not added to block definitions.
Add an update script to remove empty settings.

Remaining tasks

Work out how to do this.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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