Problem/Motivation
When reviewing #2961114: Migrate D6 i18n CCK field option translations during a migrate meeting it was decided that the the destination getIds() methods should not have any conditional logic. See Comment #20.
The code is:
if ($this->isTranslationDestination()) {
$ids['langcode']['type'] = 'string';
}
and it is in at least these destionation classes:
core/modules/migrate/src/Plugin/migrate/destination/Config.php
core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php
core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php
core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php
Proposed resolution
Remaining tasks
Write a patch
Review
Commit
User interface changes
API changes
Data model changes
Comments
Comment #2
jofitzWhat should be used in place of the conditional logic to maintain the current functionality?
Comment #3
heddnTriaging issue queue.
Comment #4
quietone commentedFound this implementation of getids which moves the conditional logic to a new method. #2820886: EntityRevision should calls parent::getIds();
Comment #7
quietone commentedThe migration of node revision translations, #2746541: Migrate D6 and D7 node revision translations to D8, introduces the entity_complete destination plugin which uses a deriver and has conditionals in the getIds() method. See comment #402
If we want to pursue this then we need to be sure that having some NULL destination IDs does not cause any problems.
Comment #10
quietone commentedDiscussed at a migrate meeting today. This issue is not migrate critical, so removing tag.
Comment #11
Pooja Ganjage commentedHi,
Creating a patch for this issue.
Please review the patch.
Thanks.
Comment #12
Pooja Ganjage commentedComment #14
quietone commented@Pooja Ganjage, thanks for making the patch. Unfortunately, I got called away and didn't finish my comment.
At the meeting the migrate maintainers decided this was a won't fix.