NodeCompleteNodeTranslationLookup should return NULL for non translated lookups

Created on 2 July 2023, over 1 year ago
Updated 25 January 2024, 11 months ago

Problem/Motivation

The \Drupal\migrate_drupal\Plugin\migrate\process\NodeCompleteNodeTranslationLookup process plugin return valid values for a non translated node and it should not. This was discovered while working on 📌 Migrate UI upgrade tests should provide the complete log Fixed .

The process plugin is designed to convert a lookup on the node_complete migration to a lookup on the node_translation migration. But it will return a valid value for a non-translation, if it exists in the map table. It should not do that. It should be mimicking the node_translation migration which, of course, only has mappings for translated nodes.

Steps to reproduce

Proposed resolution

Change the process plugin to return NULL if the source language is 'und'
Add a test

Remaining tasks

Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.2

Component
Migration 

Last updated about 13 hours ago

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024