1. I've successfully exported a taxonomy and this module generates its structure_sync.data.yml as conf file -> ok.
  2. Then I've exported above generated conf with drush cex -> ok
  3. Just for testing purposes, I've changed a term name directly in the conf. So I tried to re-import changes using drush cim: drupal system correctly recognizes a conf diff, so it imported the new conf without problem -> ok
  4. Cache cleared: the term is NOT changed. -> WHY? After importing the conf with drush cim I would have expected the term to have changed...
  5. To finally obtain desidered changes, I had to go through this module UI and click on "import (full)" -> term is finally changed.

So the question is: why the final import is not directly triggered with drush cim?

Comments

MXT created an issue. See original summary.

mxt’s picture

Issue summary: View changes
mxt’s picture

Issue summary: View changes
mxt’s picture

Issue summary: View changes
mxt’s picture

Project: Content Synchronization » Structure Sync
Version: 8.x-2.0 » 8.x-1.16
timkruijsen’s picture

Status: Active » Closed (works as designed)

By design the action to import is always triggered manually. One of the reasons being that as a user you can choose between different modes. If you feel like this should also have an option to automatically perform a structure sync on each config import than I wouldn't necessarily disagree with you, but given the amount of work I would assume this would take (add configuration options to enable/disable this functionality plus an option to set the mode used for that automated action) I don't think I will add this functionality in. If you/someone else would be able to build a patch for it, I'd happily review it and release it though.

willthemoor’s picture

To finally obtain desidered changes, I had to go through this module UI and click on "import (full)" -> term is finally changed.

Agree that it's a reasonable question but, in cased you missed it: You don't need to use the admin UI if you're confident in your config (like you would be with drush cim). From the project page:

The available Drush commands are:

export-taxonomies (et) - Export taxonomy terms to configuration
import-taxonomies (it) - Import taxonomy terms from configuration
export-blocks (eb) - Export custom blocks to configuration
import-blocks (ib) - Import custom blocks from configuration
export-menus (em) - Export menu links to configuration
import-menus (im) - Import menu links from configuration
export-all (ea) - Export taxonomy terms, custom blocks and menu links to configuration
import-all (ia) - Import taxonomy terms, custom blocks and menu links from configuration