MigrationAssistant Import Export Workflow
This focused guide extends Overview for the MigrationAssistant package.
Purpose
Section titled “Purpose”MigrationAssistant separates export, package validation, flat-file source reading, field mapping, preview, dependency graph review, relation resolution, import execution, and rollback reporting.
Export Workflow
Section titled “Export Workflow”- Build the dependency graph.
- Serialize package payloads and metadata.
- Write the package archive to the configured export path.
- Review package limits before moving archives between environments.
Import Workflow
Section titled “Import Workflow”- Read a Capell package, CSV, XML, or a source registered by another package.
- Map source fields into pages, types, or another target registered with the target registry.
- Preview creates, skips, warnings, and blocking errors before execution.
- Review page collisions, dependency graph data, media ingest expectations, and relation resolution rows.
- Execute the import plan on the configured queue.
- Review
ImportCompletedorImportFailedoutput. - Review the rollback report for created model class/id pairs, imported URL/media counts, source filename/checksum, executing user/time, and manual rollback instructions.
- Keep source archives until the import result summary and rollback report are accepted.
Source Packages
Section titled “Source Packages”Source packages register an implementation of ImportSourceReader. A reader provides rows, columns, metadata, and a suggested target. capell-app/wordpress-importer uses this extension point for WordPress WXR exports, keeping WordPress parsing out of MigrationAssistant while still appearing inside the Migration AIOrchestrator.
Pitfalls
Section titled “Pitfalls”- Configure disk and queue settings before large imports.
- Review preview and relation resolution before executing an import plan.
- Check package size limits before accepting client archives.