NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
12 stars 33 forks source link

Features doesn't import configs in list's update hook #4450

Closed dev-rana-publicis closed 2 months ago

dev-rana-publicis commented 2 months ago

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 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.

$assigner = \Drupal::service('features_assigner’);
$assigner->assignConfigPackages();

Steps to reproduce the issue

  1. Checkout master
  2. Outside the container run composer cgov-clean && composer install
  3. Inside the container reinstall Drupal - blt cgov:reinstall --no-interaction
  4. Checkout ticket/4379-summary-box
  5. Outside the container run composer cgov-clean && composer install
  6. Inside the container run drush updb
  7. Inside the container run drush features:import cgov_home_landing

What's the expected result?

What's the actual result?

Related Tickets