When we created the list PR and created its view mode, there was no error because the view mode that is in cgov_image gets imported before cgov_list alphabetically so the update hook never worked to begin with. We noticed that sometimes, configs won't get imported during our update hooks. The fix for this requires us to load the configs to ConfigAssigner before importing with features.
Outside the container run composer cgov-clean && composer install
Inside the container reinstall Drupal - blt cgov:reinstall --no-interaction
Checkout ticket/4379-summary-box
Outside the container run composer cgov-clean && composer install
Inside the container run drush updb
Inside the container run drush features:import cgov_home_landing
What's the expected result?
The update hooks should pass and features should import the configs without failing
What's the actual result?
[error] Error: Call to a member function getConfigDependencyName() on null in Drupal\Core\Entity\EntityDisplayBase->calculateDependencies() (line 300 of /var/www/docroot/core/lib/Drupal/Core/Entity/EntityDisplayBase.php) #0 /var/www/docroot/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(362): Drupal\Core\Entity\EntityDisplayBase->calculateDependencies()
Issue description
When we created the list PR and created its view mode, there was no error because the view mode that is in
cgov_image
gets imported beforecgov_list
alphabetically so the update hook never worked to begin with. We noticed that sometimes, configs won't get imported during our update hooks. The fix for this requires us to load the configs to ConfigAssigner before importing with features.Steps to reproduce the issue
master
composer cgov-clean && composer install
blt cgov:reinstall --no-interaction
ticket/4379-summary-box
composer cgov-clean && composer install
drush updb
drush features:import cgov_home_landing
What's the expected result?
What's the actual result?
Related Tickets