Orphan purger : if entity's parent is invalid (NULL), dig deeper

Created on 4 March 2021, about 4 years ago
Updated 30 October 2023, over 1 year ago

Problem/Motivation

For now, the orphan purger backs off when the parent entity is invalid (eg. NULL) as even if in many cases it means that the entity is indeed orphan, it could also mean that the parent reference is not set although a reference exists through one of the defined ERR field.

Proposed resolution

If isValidParent() return PARENT_INVALID_SKIP, try to find an entity referencing this entity through any defined ERR field that target this entity type.

Remaining tasks

Review & test.

User interface changes

None.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada garphy

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