This one is pretty straightforward. As of 8.5.x, when updating a paragraph using the paragraphs_edit contextual links, a revision is created on the parent node but is not reflected on the revision log due to translation mismatch. The content_translation module does not need to be enabled for this to be a problem.

Steps to reproduce:

  1. Enable paragraphs_edit module.
  2. Create new node with paragraphs-enabled field.
  3. Edit node normally (node/[node:id]/edit) => Revision created + reflected on revision tab (node/[node:id]/revisions).
  4. Edit node via contextual link on paragraph provided by this module => Revision created but does not show up on revisions.

This is a problem because content editors do not have the ability to roll back to previous revisions if needed.

See also:
New API to create entity revisions

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

rpc5102 created an issue. See original summary.

joelstein’s picture

Version: 8.x-2.0-alpha6 » 8.x-2.x-dev
Status: Active » Needs review
Related issues: +#2914976: Revisions log does not attribute author or timestamp correctly
StatusFileSize
new546 bytes

Great catch and thanks for referencing #2924724: Add an API to create a new revision correctly handling multilingual pending revisions. From the commit at https://git.drupalcode.org/project/drupal/commit/db9c0e6, I created a patch which uses the ContentEntityStorageBase::createRevision() to create the revision, which more gracefully sets everything up for revisions and translations.

Also see #2914976: Revisions log does not attribute author or timestamp correctly where I'll post an updated patch to fix the revision author and created timestamp.

danthorne’s picture

Latest patch in #2914976: Revisions log does not attribute author or timestamp correctly seems to work. Is this still needed?

paweldxm’s picture

The problem is indeed there and can be replicated. The patch #2 fixes the problem. Thx jolstein.

bbrala made their first commit to this issue’s fork.

bbrala’s picture

Version: 8.x-2.x-dev » 3.0.0
bbrala’s picture

Status: Needs review » Reviewed & tested by the community

This makes a lot of sense. Made an MR and setting RTBC for now.