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

Created on 25 June 2020, about 5 years ago
Updated 25 January 2024, over 1 year 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 11 days 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?

  • Status changed to Closed: outdated 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Since there's been no follow up to #7 going to close out. if still a bug in D11 please re-open.

Production build 0.71.5 2024