Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Dec 2020 at 11:01 UTC
Updated:
30 Dec 2020 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
huzookaComment #3
Pooja Ganjage commentedHi,
Creating a patch for this issue.
Please review the patch.
Let me know if any suggestions.
Thanks.
Comment #4
Pooja Ganjage commentedComment #5
quietone commentedAdding related issues that deprecates the hook_prepare_row
Comment #6
alexpottLet's see if we can add generic testing of this.
Comment #8
quietone commented@alexpott, thank you. I just started to think about a test, which catch asked for in 3187426 #10/a> and came to read this issue see what was here and voila, a test! You have been fixing quite a few of my mistakes lately. Thanks.
I reviewed the patch and modified all the source plugins that require changing to have '
return parent::prepareRow($row);' if it is the last statement in prepareRow orif the call to the parent is at the beginning of prepareRow. This case is common in the i18n translation source plugins.
So, lets see if this breaks anything.
Comment #9
quietone commentedClosed #3187426: Ignored parent::prepareRow() return value in TermTranslation and in TermLocalizedTranslation. The source plugins altered there are included here.
That means that the test and all the fixes are in one patch and having this as a meta doesn't make sense. Removing the Meta from the title.
Comment #10
daffie commentedThe added testing tests that every migrate source plugin returns false when a migrate row should be skiped. All instances where migrate source plugins where not doing that are fixed.
The patch adds documentation where it is needed.
All code changes look good to me.
For me it is RTBC.
Comment #13
catchCommitted/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!