Field Inheritance data is not removed from the database when the entities are deleted nor the module uninstalled

Created on 23 May 2025, about 1 month ago

Problem/Motivation

Each entity that makes use of Field Inheritance generates a new entry in the key_value database table.

However, there's no control to cleanup that table which might grow more than necessary given that modules does not control when entries must be removed from the storage.

Module should provide a garbage collector service to cleanup the data when entities are removed or the module is uninstalled.

Steps to reproduce

Install a Vanilla Drupal site with Field Inheritance module
Create one or more Field Inheritance entities
Create several content entities as destination of those Field Inheritances
Confirm that each entity generates an entry in the key_value DB table in the field_inheritance collection
Delete part of those entities
Confirm that entries related to those entities are not removed from the DB
Uninstall the field_inheritance module
Confirm that any of the module related DB entries are removed from the DB

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇪🇸Spain plopesc Valladolid

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

Comments & Activities

Production build 0.71.5 2024