Closed (duplicate)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2013 at 00:09 UTC
Updated:
30 Apr 2013 at 19:48 UTC
When I first initialize a custom migration module, there is nothing listed on the job listing page, but once I register my first task that is assigned to a job (group), the task's group AND a group called 'default' is displayed in the UI.
I would suggest that if all the tasks are assigned to named jobs, then there is no need to display the empty 'default' group in the UI.
Comments
Comment #1
mikeryanSo, you're registering migrations assigned to a different job, and a "default" job is being created as a result? I would consider that a bug - I was having that issue earlier in the 2.6 development, but I thought I had killed it - haven't seen it in my own development in a while. How are you registering the migrations? I'd like to be able to reproduce this scenario.
Comment #2
JSCSJSCS commentedI am registering them in hook_migration_api().
The 'default' job is being created in addition to my job registered in the hook.
Comment #3
mikeryanDon't forget to reset the status to "active" if you'd like a more timely response - postponed issues are the lowest priority when I'm going through the queue.
Are you setting 'group_name' in the migration arguments when registering your migrations? Methinks this may primarily be a documentation issue, I'll definitely cover it when updating the docs: #1965854: Update documentation for Migrate 2.6.
Comment #4
Lowell commentedThis has been a HUGE headache for me too, finally led me here because I have the same "symptoms"
I simply found a "typo" in my .module file.
The $source_fields array in the MigrateDestinationNode [class?] was misspelled.
Finally solved it when I changed Devel error handling to none and the relevant line number was spit out at me on white error page.
With the error handling set to Standard Drupal the error message was suppressed and I had no idea what the trouble was.
A good lesson to learn about error tracking :-)
It might be a good idea to catch this error and show it on the content/migrate page.
Comment #5
mikeryanI believe the work I'm doing in #1928956: Straighten out constructor parameters/arguments should prevent the bogus empty default group from being created.