Config field dependencies are not checked on uninstall

Created on 12 June 2023, over 1 year ago
Updated 13 June 2023, over 1 year ago

Problem/Motivation

Steps to reproduce

Field module provides an uninstall validator, FieldUninstallValidator, which checks that a module being uninstalled doesn't provide the field type plugin for any active fields.

However, if a field's config declares a config dependency, that is not checked on uninstall.

This could result in a broken field or entity type - for example, if the module being uninstalled provides the callback_allowed_values_function() for a field.

Proposed resolution

Add another ModuleUninstallValidatorInterface to field module which checks field and field storage config dependencies.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.1

Component
Field 

Last updated 3 days ago

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024