Delete configuration (block bundle and fields) when the module is uninstalled

Created on 16 December 2021, about 3 years ago
Updated 26 April 2024, 8 months ago

Problem/Motivation

When the module is uninstalled all the configuration setup by it (with exception of the popup_block.settings) remains installed on the site, which may cause some issues if we re-installed the module.

Steps to reproduce

Just run drush pmu popup_block -y && drush en popup_block -y and watch it explode

Proposed resolution

  • Provide a check before uninstall to prevent the module from been uninstalled if any block content is present
  • Enforce dependency with module for all installed configs
  • Remove the cache_popup_block_viewed cache bin

Remaining tasks

TBD

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain d70rr3s

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

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