πŸ‡ΊπŸ‡ΈUnited States @jim_b

Account created on 30 November 2022, about 2 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States jim_b

I'm testing with Drupal 9.5.x and have the same issue.

I run the command:
drush export-menus
And get a success message:

Exporting menu links...
[notice] Menu links export started
[notice] Exported "Menu item" of menu "main-menu"
…

But unfortunately, the files are not exported to the 'config/' directory (as expected) or anywhere else.

πŸ‡ΊπŸ‡ΈUnited States jim_b

6. Copy this menu_export.export_data.yml file to the files/config_bunch_of_unique_characters_here/sync folder on your destination site.
7. Go to the destination site and run drush cim --partial or drush config:import --partial and confirm that you want to import this config.
8. Look at the command output to make sure it worked.
9. Go to /admin/structure/menu/ to find your imported menu there :-).

Unfortunately in my testing, these steps are not entirely correct. I'm testing with Drupal v9.5.x.
There is an additional step required, see below:

When I do a partial import with my "menu_export.export_data.yml" file, which lives in: 'config-menu-test/':
drush cim --partial --source=/config-menu-test -y
The import says it is successful:
[success] The configuration was imported successfully.

But after clearing the cache and viewing the menu as in Step #9, unfortunately the menu is still not updated.

The menu is only updated after going to:
'/admin/config/development/menu_export/import'
and clicking "Import Menu Links".

Then viewing the menu (step #9) will show the updated menu.

There should be a step between #8 and #9:
Go to: '/admin/config/development/menu_export/import', click "Import Menu Links".

Unfortunately this requirement to use the Admin GUI limits the usefulness of this module for automated deployments. I hoped just drush cim partial import would work by itself.

πŸ‡ΊπŸ‡ΈUnited States jim_b

The patch files from this issue's fork no longer work with commerce_migrate v3.2.1 or v3.2.x-dev after the update on 9 Jul 2023.
(The v3.2.x-dev before 9 Jul 2023 would allow these patches to apply.)

πŸ‡ΊπŸ‡ΈUnited States jim_b

There's a migration from D6

In case it helps anyone else, some specifics, see the file at: "commerce_license/migrations/d6_uc_roles_license.yml"

Production build 0.71.5 2024