- Issue created by @dmundra
- πΊπΈ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:
- Disable the example module.
ddev drush pmu ai_migration_example
- Re-enable the module to create the new content type.
ddev drush en -y ai_migration_example
- Log in and go to admin/structure/types.
- Confirm that simple_content_migration is in the list.
- It is advisable to delete the old content type easy_migration_example.
- Clear the cache.
ddev drush cr
- Run the import.
ddev drush migrate:import simple_content_migration
- Confirm that 2 items import.
- Go to the content list and inspect the nodes.
- Confirm that they imported adequately.
- Disable the example module.
- πΊπΈ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 aconfiguration 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)
-
dmundra β
committed 3be7918a on 1.0.x authored by
majorrobot β
Issue #3545204: Clean up example content
-
dmundra β
committed 3be7918a on 1.0.x authored by
majorrobot β
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.