When you try to install the module acquia_search form a install profile you get the following error message

[error] Configuration objects provided by acquia_search have unmet dependencies: search_api.index.acquia_search_index (field.storage.node.body, node)

The problem seems to be the acquia_search/config/install/search_api.index.acquia_search_index.yml file, that should be in the optional/ directory, because this config entity has dependencies.

Comments

akalam created an issue. See original summary.

akalam’s picture

Status: Active » Needs review
StatusFileSize
new869 bytes
akalam’s picture

Title: acquia_search Error on module installation: unmet dependencies » acquia_search Error on module installation under install profile: unmet dependencies
Issue summary: View changes
akalam’s picture

After further testing I realize the issue is happening only when the module is installed from installation profile. The config/optional directory is the right one for drupal to discovery the right order to import the configurations, so when you have dependencies in a configuration entity, this should be included in this directory and not in the config/install one.
https://www.drupal.org/node/2453919
https://lightning.acquia.com/blog/optional-config-weirdness-drupal-8
Updating title

kmajzlik’s picture

Status: Needs review » Reviewed & tested by the community

Same problem here, same solution was growing in my head.
Successfully used on our project.

  • Dane Powell authored e810357 on 8.x-1.x
    Fixes #2962395, #2833250, #2726395: Make acquia_search_index config...
danepowell’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.