Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2014 at 17:17 UTC
Updated:
29 Jul 2014 at 23:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tommyk commentedAdded a patch that shows the test failing.
Comment #2
cyu commentedI was able to replicate this problem on a basic install. Verified that test in comment 1 fails.
After applying the attached patch, the body label was migrated as expected and the test in comment 1 passes.
Comment #3
hosef commentedI tried this on a live migration, and the body labels are still not being migrated. I did some debugging and found that create_body_label is not always passed to the node_type creation. I don't yet know what is causing it to not get passed.
Comment #4
cyu commentedhosef: Any chance you'd be able to write a test or describe the situation that demonstrates this failure? I've been unable to replicate the behavior you describe. Are some of your body field labels getting properly migrated and some still coming across generically as "Body" when they should be something else? Does applying the patch cause any difference in the results of your migration?
I'm fairly unfamiliar with the code, but making that one line change got the supplied test to pass and got my simple migrations working so I'm unsure how to dig deeper without some fail situations.
Comment #5
ultimikeI've confirmed this is an issue and that @hosef's fix solves the problem.
I'm attaching a patch that adds a modification to the existing test to support the fix.
Thanks,
-mike
Comment #6
hosef commented@cYu was the one who posted the fix.
Comment #7
benjy commentedLooks good.
Comment #9
alexpottCommitted 052090f and pushed to 8.x. Thanks!