Closed (fixed)
Project:
WordPress Migrate
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2026 at 16:28 UTC
Updated:
2 Apr 2026 at 17:05 UTC
Jump to comment: Most recent
Add validator class to catch incorrectly created configurations, field choices , etc between both the wizard UI and the drush. It can return messages to both drush and the wizard UI.
This should corral invalid taxonomy choice, invalid form field selections and so on.
Add validator class and tests. Loop into the existing workflow and then proceed with refactoring later.
Proper rejection messages.
Moves validators out of wordpress_migrate_ui and into the main module.
Will eventually work with a better formed configuration object in the main generator.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
hongpong commentedGoing with this for now.
Comment #6
ressaThanks @hongpong, this is a huge improvement and extremely helpful, giving actionable feedback, as can be seen below. Tags, formats, or content types that don't exist are used, and the migration is rejected, and not created. Nice!
Comment #7
hongpong commentedThank you ressa! I would honestly for sake of consistency want this to run at the last part of the import wizard UI as well, but I realized that it needs more service dependency injections to be run there. (Or i could put that as a new function in the generator but don't want to. ( #2742283: Validate configuration in WordPressMigrationGenerator::createMigrations for this)