Problem/Motivation
When I exported the configuration from the module, two files were generated:
- entity_reference_preview.settings.yml
- view.settings.yml
When that configuration is imported into a clean install of Drupal 9, I get a configuration import error
Configuration <em class="placeholder">view.settings</em> depends on the <em class="placeholder">view</em> extension that will not be installed after import. in Drupal\Core\Config\ConfigImporter->validate() (line 748 of /mnt/tmp/local.prod/source/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php).
I have a feeling the issue is in entity_reference_preview.install which adds the configuration key in hook_install and removes it in hook_uninstall. Shouldn't it be views.settings?
Steps to reproduce
- Install Drupal using Standard installation profile
- Add and enable the entity_reference_preview 1.0.3 module
- Export the configuration for the site (I used drush cex)
- Reinstall Drupal using the Standard installation profile
- Import configuration exported above (I used drush cim)
Proposed resolution
Change lines 15 and 27 in entity_reference_preview.install to use "views.settings" instead of "view.settings"?
Remaining tasks
Patch and tests
User interface changes
None
API changes
None
Data model changes
None?
Comments
Comment #3
e0ipsoThis was a big oversight. Sorry it took so long to get to this.
Comment #4
e0ipsoComment #5
e0ipsoComment #7
e0ipso