Problem/Motivation

Steps to reproduce

1. configure one or more search components
2. export config
3. try to import that config elsewhere

The config import is partially successful, but then fails with an error like this:

 [notice] Synchronized configuration: create coveo.search_component.content.
 [notice] Synchronized configuration: create coveo.search_component.standalone.
 [warning] Undefined array key 1 ConfigManager.php:513
 [warning] Undefined array key 2 ConfigManager.php:513

In EntityTypeManager.php line 142:
                                                                    
  The "coveo.search_component.content" entity type does not exist.  

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork coveo-3539819

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

malcomio created an issue. See original summary.

malcomio’s picture

This seems to be specific to block config based on search components - the actual components are imported correctly.

Inside \Drupal\Component\Plugin\Discovery\DiscoveryTrait::doGetDefinition I can see that a definition has been registered as coveo_search_component, but the value of $plugin_id does not match - e.g. in my case it is coveo.search_component.content

malcomio’s picture

If I manually edit the exported config to remove the content dependency, this error does not occur.

neclimdul’s picture

Sorry, I missed you report. There's some quirky things going on with config but this is very odd. Also this exactly how we deploy these so wouldn't have expected it to break like this.

>If I manually edit the exported config to remove the content dependency, this error does not occur.
Hm... this sounds like a really good clue but just clicking around I wasn't able to recreate getting that dependency added and the config entity for components only adds a relationship to the referenced organization.

Looking at ConfigEntityBase the only thing I can think of is there's a third party module adding a dependency but I don't have any idea what that would be.

neclimdul’s picture

Status: Active » Postponed (maintainer needs more info)

If you want to look into what's triggering that third party dependency or maybe narrow down a site module that could trigger it or even give a list of modules that would help narrow down what's causing this.

raywalters made their first commit to this issue’s fork.

becw’s picture

Status: Postponed (maintainer needs more info) » Needs review

The patch from @raywalters seems to have found the cause of the issue. I was able to manually edit my existing config, and apply the patch to prevent future recurrances.