Stubs should only be created if the referenced source row actually exists

Created on 3 July 2020, almost 5 years ago
Updated 26 August 2024, 8 months ago

Problem/Motivation

Currently, stubs are blindly created for any referenced entity ID on the source site, even if that is a non-existing entity reference ID!

If you're also validating all your migrated entities (like you should be), which is possible since #2745797: Add option to content entity destinations for validation β†’ (see https://www.drupal.org/node/3073707 β†’ for the CR), then all of those rows will also not trigger validation errors, when in reality they should.

This means you end up getting a false sense of security: your entities are migrated and pass validation.

Proposed resolution

Only create stubs if the source plugin finds a row for the given source ID values.

Remaining tasks

User interface changes

None.

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
MigrationΒ  β†’

Last updated 2 days ago

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024