Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Oct 2015 at 20:15 UTC
Updated:
3 Dec 2015 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
neclimdulgetEntity() is returning false when it can't load an entity but ContentEntityBase::import() isn't setup to handle that.
Comment #3
neclimdulIn the process of ensuring it fixes the actual bug we're seeing in the migration but here's a patch with tests.
Comment #4
mikeryan"Unable to load entity" assumes there was an old entity to be loaded (the problem you're addressing here), but getEntity() also creates new entities, so the message could be more general.
MigrateSkipRowException will set the IGNORED status for the row in the map table (meaning the item is being skipped intentionally), I think MigrateException (which sets an error status) would be more appropriate here.
Otherwise, looks good to me.
Comment #5
neclimdulSure.
Comment #6
mikeryanLooks good, let's see if we can get this in.
Comment #7
effulgentsia commentedOnly changes Migrate module code, so "rc eligible" per https://www.drupal.org/core/d8-allowed-changes#rc.
Comment #8
webchickNo longer applies.
Comment #9
webflo commentedComment #10
mikeryanPreliminary RTBC - no reason this should fail, just removing a use statement made redundant by the stub patch commit.
Comment #11
neclimdulConfirmed looks the same, back to RTBC.
Comment #12
neclimdulEntityContentBase got a new constructor argument. Updated patch.
Comment #13
mikeryanI'd reset to RTBC, but it's still there:P. Anyway, I didn't look closely enough to see that the test is constructing a content entity, and since the stub patch added a new argument (field type manager) it broke the test here. Interdiff looks good and phpunit passes locally, lgtm (again).
Comment #16
webchickCommitted and pushed to 8.0.x. Thanks!