Problem/Motivation

On a current project, it is very important that revisions are created any time certain node data is updated. Let's say I am editing node A that has a CER with node B. When I update the value of the field on node A (and then node B gets updated), I would like for a new revision to be created for node B.

User interface changes

There is not necessarily much need for UI changes. The only thing I can think of is providing some kind of configuration settings to enable/disable these revisions or to set the revision message text (including tokens)

Issue fork cer-3477490

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

megakeegman created an issue. See original summary.

megakeegman’s picture

Version: 5.x-dev » 5.0.0-beta3
StatusFileSize
new953 bytes

Here is a basic patch that does what I need it to. Very happy if anyone has improvements or recommendations for improvements.

megakeegman’s picture

Updating the patch. Patch 2 was missing the parens on a function call. Patch 3 adds a revision timestamp and user id.

socialnicheguru’s picture

Status: Active » Needs review
anybody’s picture

Version: 5.0.0-beta3 » 5.x-dev

@megakeegman totally agree ,could you create a MR please?

smustgrave’s picture

smustgrave’s picture

@anybody I made an MR and confirmed this creates a revision for us. The pipeline errors are from other areas.

megakeegman’s picture

Thanks for following up here. Sorry I missed this.

anybody’s picture

Status: Needs review » Reviewed & tested by the community

GREAT work @smustgrave! I thought we should maybe make this configurable to allow opt-out, but on the other hand it doesn't need settings for anything.

With the MR it works as expected IMHO, so RTBC from my side. If maintainers think different, please change status again. Thank you!!

anybody’s picture

Status: Reviewed & tested by the community » Fixed

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.