Incorrect revision number when workspace has parent

Created on 22 March 2021, over 3 years ago
Updated 28 September 2023, about 1 year ago

Problem/Motivation

If a workspace uses an auto publishing system and changes are updates are triggered for the current workspace and its parent.
However when trying to delete the old revision for the parent the incorrect revision id is found.
I believe this to be because the original node information is coming from the current workspace instead of the parent.

Proposed resolution

Instead of getting the old revision id the original entity via $entity->original->getRevisionId() the id can be extracted from revision_parent value.
$entity->revision_parent->target_revision_id

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom 3li U.K. 🇬🇧

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