Adjust easy migration example content structure

Created on 5 September 2025, about 1 month ago

Problem/Motivation

We want to change the migration example content structure to be more generic or based on a CA example like https://accessibility.civicactions.com/

Remaining tasks

To be decided

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

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

Merge Requests

Comments & Activities

  • Issue created by @dmundra
  • πŸ‡ΊπŸ‡ΈUnited States majorrobot
  • Merge request !18Issue #3545204: Clean up example content β†’ (Merged) created by majorrobot
  • πŸ‡ΊπŸ‡ΈUnited States majorrobot

    I've made the example content more general. I used posts from accessibility.civicactions.com for the slice.

    I've also removed the old example content type and started over -- the new content type is simple_content_migration. I removed the old migration yaml and cleaned up the example yaml.

    QA Steps:

    1. Disable the example module. ddev drush pmu ai_migration_example
    2. Re-enable the module to create the new content type. ddev drush en -y ai_migration_example
    3. Log in and go to admin/structure/types.
    4. Confirm that simple_content_migration is in the list.
    5. It is advisable to delete the old content type easy_migration_example.
    6. Clear the cache. ddev drush cr
    7. Run the import. ddev drush migrate:import simple_content_migration
    8. Confirm that 2 items import.
    9. Go to the content list and inspect the nodes.
    10. Confirm that they imported adequately.
  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    I get this error when trying to re-enable the module

    dmundra in ~/workspace/community/ai_migration on branch 3545204-adjust-easy-migration > ddev drush en -y ai_migration_example
    
    In UnmetDependenciesException.php line 100:
                                                                                                                                                                                                                 
      Configuration objects provided by <em class="placeholder">ai_migration_example</em> have unmet dependencies: <em class="placeholder">field.field.node.simple_content_migration.field_author (field.storag  
      e.node.field_author), field.field.node.simple_content_migration.field_post_content (field.storage.node.field_post_content), field.field.node.simple_content_migration.field_post_date (field.storage.node  
      .field_post_date), field.field.node.simple_content_migration.field_publishing_information (field.storage.node.field_publishing_information)</em>                                                           
                                                                                                                                                                                                                 
    
    Failed to run drush en -y ai_migration_example: exit status 1

    I did uninstall the module. Ah I believe you are missing the field.storage config files for those new fields.

  • πŸ‡ΊπŸ‡ΈUnited States majorrobot

    Good catch @dmundra. I've added in the missing config and moved everything to a config/optional directory so that we can uninstall/enable the module without a configuration objects already exist in active configuration error (something that was occurring to me while testing this morning).

  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    Looking good @majorrobot. I do like the prompt details in the field descriptions. For the byline should we grab the title if it exists? E.g. https://accessibility.civicactions.com/posts/prioritizing-accessibility-... has β€œBy Jack Haas, Front End Engineer” (but that is for the future)

  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR
  • Now that this issue is closed, please review the contribution record.

    As a contributor, attribute any organization helped you, or if you volunteered your own time.

    Maintainers, please credit people who helped resolve this issue.

  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR
Production build 0.71.5 2024