
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:
- Enable paragraphs_edit module.
- Create new node with paragraphs-enabled field.
- Edit node normally (node/[node:id]/edit) => Revision created + reflected on revision tab (node/[node:id]/revisions).
- 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
Comment | File | Size | Author |
---|---|---|---|
#2 | paragraphs_edit-better-revisions-3065643-2.patch | 546 bytes | joelstein |
Issue fork paragraphs_edit-3065643
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
Comment #2
joelstein CreditAttribution: joelstein at On Fire Media commentedGreat 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.
Comment #3
danthorneLatest patch in #2914976: Revisions log does not attribute author or timestamp correctly seems to work. Is this still needed?
Comment #4
paweldxm CreditAttribution: paweldxm as a volunteer commentedThe problem is indeed there and can be replicated. The patch #2 fixes the problem. Thx jolstein.
Comment #7
bbralaComment #8
bbralaThis makes a lot of sense. Made an MR and setting RTBC for now.