Comment module uninstallation leaves key_value table with entity.definitions.bundle_field_map entry

Created on 25 June 2020, about 4 years ago
Updated 25 January 2024, 8 months ago

After we uninstall comment module, the following code still lists comment_body field of comment entity.

\Drupal::service('entity_field.manager')->getFieldMapByFieldType('text_long');

Ideally, the comment entity fields should not appear as module is uninstalled.

After investigation, it was found that key_value table still has an entry of entity.definitions.bundle_field_map collection corresponding to the comment (name column). This leads to entity_field.manager listing the comment entity fields as well.

🐛 Bug report
Status

Postponed: needs info

Version

9.5

Component
Comment 

Last updated 1 day ago

Created by

🇪🇸Spain purushotam.rai

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.

  • 🇳🇱Netherlands Lendude Amsterdam

    Tried to reproduce:
    * Clean Umami install
    * Enabled Comment module
    * Checked key_value table, comment entry was there
    * Uninstall comment module
    * Checked key_value table, comment entry was gone

    Can you reproduce this on a clean Drupal install?

Production build 0.71.5 2024