Problem/Motivation
the migrate group default tends to get created. there is an 'unguarded' call in the migration generator outside of the drush file, the ai gizmo flagged it as probably the trigger.
In addition there are other drush options that fail kinda silently e.g. if you do not have the taxonomies existing, you can pick nonexistent ones as a text entry etc. The kind of stuff the wizard does not let you do, the drush does let you do. we could make validations somewhere and run them against drush and the wizard UI routes.
Steps to reproduce
i think this happens generally.
Proposed resolution
clean up this default issue. possibly make a test
Remaining tasks
- Clean up default issue
- make validators for taxonomy, especially
- Make a test.
User interface changes
drush could reject invalid taxonomy choices with a message.
API changes
something changing in the migration generator's behavior. additional validators that the drush file can call, or perhaps the generator should call internally instead and report back to drush as a whole.
Data model changes
maybe a different submission from drush to the generator.
Comments
Comment #2
hongpong commentedComment #3
hongpong commentedthis is a duplicate of #3522658: Is it possible to avoid creating the Default migration after installation?
Comment #5
ressaYes it looks like a duplicate. Also, this "Default
defaultA container for any migrations not explicitly assigned to a group."-extra migration is also created when you use the GUI to create a migration, so it's not Drush-specific.This ^^ is what I wrote first, after these steps:
drush site:install... but then I saw something weird: I again ran
drush site:installand installed the modules, did some other stuff, and for some reason randrush migrate:status, and I got the "Default"!And it was also now present under
drush site:installas well.So it seems that creation of the "Default" group can be triggered via these actions:
drush migrate:statusSo it's slightly Drush-specific after all :) Still, the reason is probably best handled in #3522658: Is it possible to avoid creating the Default migration after installation?, preventing the underlying code which creates "Default" from getting triggered.