Add documentation for import types (full, force, safe)

Created on 17 December 2018, about 6 years ago
Updated 18 July 2023, over 1 year ago

Documentation on what, precisely, a "full|force|safe" import does is not provided in

  • the drush help,
  • help via the drupal help module,
  • on the module page, or
  • in the README.

As far as I can tell, the only way to determine what these import types mean and do, is to examine the code itself.

๐Ÿ“Œ Task
Status

Needs work

Version

2.0

Component

Documentation

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States komlenic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States mlncn Minneapolis, MN, USA

    Agreed the module page documentation needs work before we add it to README, the module page, and drush help. And maybe the functionality needs updating to better match the documentationโ€ฆ

    Most important thing to understand/document is that "force" should be called "destructive"

    By deleting everything first, "force" severs any connection existing content had with your custom block, menu item, or taxonomy term, if that relationship is based on entity ID. This is mainly a problem for taxonomy terms. Using "force" will delete all the terms from any content you have, and recreate them with new term IDs and no relation to your content anymore.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States mlncn Minneapolis, MN, USA

    I think that documentation is best in the module, module page, or README but Drupal documentation is very useful for extended documentation and working on docs collaboratively so i've started this guide:

    https://www.drupal.org/docs/extending-drupal/contributed-modules/structu... โ†’

    (When it is ready, it would have to be linked to from the structure sync module page by an admin.)

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance louis-cuny

    Thank you @mlncn

    I added a "Documentation" link in the Ressource section

  • ๐Ÿ‡ฉ๐Ÿ‡ฐDenmark ressa Copenhagen

    Thanks @mlncn and @louis-cuny. I added the Drush commands and import choices to https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... โ†’ from the project page so that the community can pitch in with writing the documentation. On the project page, only maintainers can update.

    I just did some menu synchronization. I first tried with drush import:menus --choice=safe, which caused all menu items to be duplicated, but drush import:menus --choice=full worked well. So an extra section, or just a comment or two about how choices and menus work together would be nice on that page.

    Also, the order of commands during export and import could be added as well, something like this? (please correct if wrong ...)

    1. Develop locally and export
      drush export:menus
      drush config:export
      
    2. Import on the server
      drush config:import
      drush import:menus --choice=full
      
Production build 0.71.5 2024