BundleConfigImportValidate error message when entities exist of a bundle being deleted could be clearer

Created on 6 May 2025, 4 days ago

Problem/Motivation

If you do a config import which removes a bundle, such as a vocabulary entity or a node type, and entities of that bundle exist, the import fails with this message:

> Entities exist of type %entity_type and %bundle_label %bundle. These entities need to be deleted before importing.

This is confusing because 'importing' refers to the whole import process, but what's actually causing this problem is an attempt to *delete* something.

Steps to reproduce

Proposed resolution

Make the message clearer about what's going on - the config import is trying to delete the bundle %bundle.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

entity system

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

  • Issue created by @joachim
  • 🇬🇧United Kingdom joachim
  • First commit to issue fork.
  • @adwivedi008 opened merge request.
  • 🇮🇳India adwivedi008

    Hello @joachim

    I tried to update the message, instead of removing, I think its better to add the changes and make it look like
    "The config import is trying to delete the bundle %bundle. Entities exist of type %entity_type and %bundle_label %bundle. These entities need to be deleted before importing."

    Please review and suggest if any other changes are required, moving the issue to Needs Review

Production build 0.71.5 2024