Subscriber importing failure if dependent entity got deleted from the publisher side

Created on 13 December 2020, almost 4 years ago
Updated 20 July 2023, over 1 year ago

Problem/Motivation

This is this dependency chain:

media entity -> node entity -> path_alias entity

If the media entity got deleted before node entity or path_alias entity being imported on the subscriber side, the importing would fail because of the below error:

[error] Import failed: Did not retrieve all requested entities. 3 of 4 retrieved. Missing entities:

To node entity, this is understandable, because the deleted media entity is indeed a dependency.

But for path_alias entity, it does not make sense to declare the deleted media entity a dependency, as long as the node entity is a dependency, the node will make sure its dependent media entity get imported as well.

Proposed resolution

1. Do not include dependency recursively
2. Need a way to update/re-export the parent entity if a child/dependent entity changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇳China weynhamz Ningbo

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