Problem/Motivation

When content moderation is enabled and the tidy process updates multiple revisions for an entity, not all are saved.

Steps to reproduce

Create a page with an item for tidy to update, save it as 'Published', update the item to create a 'Draft'.

Run tidy on the page twice. (they second run should not have any updates listed)

Proposed resolution

Fix the issue :)

Test steps

Create a new page with an item that tidy will update (for example, create another page and give it a url alias and use that)

<p><a href="/test/page">test</a></p>

Run tidy on the node twice
drush link_magician:tidy nodeid --nodeid={NN}
The second run should not list any updates (and the changes are saved now!)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jasongose created an issue. See original summary.

jasongose’s picture

Issue summary: View changes

jasongose changed the visibility of the branch 3609947-processing-multiple-revisions to hidden.

jasongose’s picture

Status: Active » Needs review
cameron prince’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies cleanly and testing steps pass. Setting RTBC.

jasongose’s picture

Status: Reviewed & tested by the community » Fixed

Merged :)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.