Closed (fixed)
Project:
Migrate Tools
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2016 at 21:29 UTC
Updated:
1 Oct 2016 at 22:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mallezieThink i found it, this is also related to #2719777: Migrations not sorted by dependency, but split them up. Could be they conflict when one of them is commited.
Comment #3
draenen commentedThere's an extra empty line above the new method but otherwise the patch applies and works for me.
Comment #4
mallezieRemoved the extra whiteline
Comment #5
mikeryanLooks good, and works when I test in semi-normal normal circumstances - but it looks to me like this will fail to list migrations which explicitly reference the default group?
Thanks!
Comment #6
balazswmann commentedI modified the patch according to #5. I think the default group should exist by default after the module installation. Otherwise the following problems are possible:
#1 - If a new migration is added through the UI which group is "- None -" and the group with "default" machine name is not exist yet, then none of the groups will list the newly added migration because it will be part of the non-existent "Default" group.
#2 - Users can create a group with the "default" machine name which is not a problem in itself, but the purpose (and the description) of this group can be arbitrary which wouldn't be good. This also implies that the default group shouldn't be editable or deletable.
Comment #7
balazswmann commentedComment #9
mikeryanRegarding the default group, every migration lacking a migration_group has 'default' added in migrate_plus_migration_plugins_alter(), and the default group is created at that time if necessary. Thus, the list should never see a migration without a group. But, it doesn't hurt to handle the else case, so leaving this in.
Committed, thanks!