DepthUninstallValidator incorrectly prevents uninstall of other modules

Created on 10 February 2023, almost 2 years ago
Updated 23 April 2023, over 1 year ago

Problem/Motivation

DepthUninstallValidator incorrectly prevents other modules from being uninstalled if they have active field storage.

For example, if you use the content translation module, Taxonomy Term Depth prevents you from uninstalling Content Translation and says you must first remove taxonomy depth data.

Steps to reproduce

Install Taxonomy Term Depth
Enable Content Translation module
Edit a content type and enable Content Translation
Go to /admin/modules/uninstall
Observe the following:
The following reasons prevent Content Translation from being uninstalled:

There is data for the field content_translation_source on entity type Content. Delete depth fields data..
There is data for the field content_translation_outdated on entity type Content. Delete depth fields data..

Proposed resolution

DepthUninstallValidator::validate() needs updating to only check the taxonomy_term_depth module.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom nicrodgers Monmouthshire, UK

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

Comments & Activities

Production build 0.71.5 2024