Switch to entity owner in EntityContentBase during validation

Created on 7 May 2020, over 4 years ago
Updated 11 September 2023, over 1 year ago

Problem/Motivation

I opened πŸ“Œ Run drush imports as user=1 RTBC to solve part of the problem. But that solution is very much a sledgehammer solution when perhaps a more valid solution is to just switch the user if entity validation is enabled. This does the latter.

Proposed resolution

Switch to the entity owner if it implements EntityOwnerInterface

Test the latest patch by enabling validation on the destination entity i.e. validate: true.

source:
  plugin: d7_node
  node_type: page
process:
  title: title
  type: type
  body: body
destination:
  plugin: 'entity:node'
  validate: true

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

9.3

Component
MigrationΒ  β†’

Last updated about 13 hours ago

Created by

heddn Nicaragua

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

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