Document (and maybe modify) how this module works with Content Moderation

Created on 18 July 2025, 13 days ago

Problem/Motivation

For nodes using Content Moderation, there may be a non-published (non-default) forward revision for a node. When using the action to modify its terms, we use the default revision of the node when making a change to it instead of the latest revision.

If we have this revision history for a content moderated node:

We load the node from the "A" revision and modify it. When we save it, we end up with this:

So what ends up happening is that we skip over that forward revision. The changes in that revision aren't lost (there's a revision history, someone can revert to it), but they're skipped over in a sense.

I'm not 100% sure on the best behavior here. The current behavior may be desireable, but I'm leaning torwards it not being correct. Usually when you're talking about editing fields on a node, you're editing the latest revision, so that's probably what we should be doing. E.g., if we were to edit an individual node manually, we'd be editing the latest revision. The bulk action this module provides should do the same thing.

Steps to reproduce

Proposed resolution

Make sure we are loading the latest revision of the node before modifying it.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024