'The "%plugin_id" was not found' warning message is confusing

Created on 25 June 2024, 3 months ago
Updated 16 July 2024, about 2 months ago

Problem/Motivation

The warning message 'The "%plugin_id" was not found' warning when importing block config is misleading because it doesn't make clear what kind of thing it's talking about. As a consequence, it leaves you wondering if you broke something, and if so, what that would be. Take the following examples:

  • The "help_block" was not found
  • The "field_block:node:example:body" was not found
  • The "block_content:aa33cb62-047a-4695-a523-aa43266c2bb3" was not found

Without explicit knowledge that these are plugin IDs, what are they talking about? Do these represent missing config dependencies I need to fix? Did it fail to find an important YAML file? Will the corresponding functionality be there if I go looking for it in the UI?

Based on #3180467: Warning "views_block:x was not found" when importing config β†’ , probably nothing actually went wrong and nothing is broken. But most people won't know that or be able to easily find out.

Steps to reproduce

You can just export some block config and then re-import it, but really it's enough to just see the message: BlockManager::handlePluginNotFound().

Proposed resolution

Just add the word "plugin" or even "block plugin" to the warning message to make it clear what it's even talking about. For example:

The "field_block:node:example:body" block plugin was not found

As to making the warning actionable. I (TravisCarden) am not sure what can be done without making it even more misleading until the underlying problem can be solved in #3180467: Warning "views_block:x was not found" when importing config β†’ .

Remaining tasks

User interface changes

<!-- <h3 id="summary-api-changes">API changes</h3> --><!-- <h3 id="summary-data-model-changes">Data model changes</h3> --><!-- <h3 id="summary-release-notes">Release notes snippet</h3> -->
πŸ“Œ Task
Status

Fixed

Version

10.4 ✨

Component
BaseΒ  β†’

Last updated 16 minutes ago

Created by

πŸ‡ΊπŸ‡ΈUnited States TravisCarden

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024