Problem/Motivation
When I upgraded from 1.7 to 1.8 for the security release, the upgrade included a number of bug fixes, one adding a field to the configuration schema (commit f2871338). During our build using BLT, the testing configuration import does 2 drush config:imports followed by a config:status which showed the config was still different, even though I did "drush updb" and "drush cex". I had to manually edit each facet and save it (no changes to the facet itself) to get the updated configuration to export.
Steps to reproduce
- Install Facets 1.7, create one or more facets and export the configuration.
- Update to Facets 1.8 (I used "composer update drupal/facets -W")
- Run database updates (I used "drush updb", no updates reported)
- Export configuration (I used "drush cex", no configuration exported)
- (following is on our CI/CD pipeline)
- Fresh install of Drupal using minimal profile and clear caches
- Import configuration ("drush cim")
- Import configuration ("drush cim")
- Check configuration status ("drush config:status")
The drush config:status will show the facets configuration is still different.
Issue fork facets-3213733
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
Comment #4
grahlSame thing here, added an update hook to resave all facets so that the correct schema is picked up and can be exported. Not sure if there is a more elegant way of doing this.
Comment #5
borisson_Looks like a simple fix. Thanks @grahl!
Comment #6
mkalkbrennerTest again with 2.0.x and Drupal 9.
Comment #8
mkalkbrenner