Problem/Motivation
The most relevant view when a moderator is reviewing content oftentimes will be the one that shows the changes from most recently proposed new version compared to the currently published revision.
For example, if a long piece of content were approved, and then a one-character change were made to it, it's almost useless to review the full content versus some version of what diff module can provide, so the moderation control form should be available on diffs revisions.
Steps to reproduce
If you enable the "Moderation control" pseudofield, you can see the form when viewing the latest revision at a path like this: /node/3816/revisions/8856/view

But there is no way to make the Moderation control form show on the display of changes that the diff module can provide at a path like this: /node/3816/revisions/view/8636/8856/visual_inline
Proposed resolution
- Provide a tab or other link that pre-selects the diff between the published version and the draft/in-review version (unless something already does this?)
- Show the moderation control form on this diff page
Remaining tasks
Confirm nothing is doing either of these steps, decide how to implement them, and implement them.
User interface changes
Moderation control form is visible on the latest draft revision vs latest published revision page; some helper link to this page somewhere.
API changes
Probably none?
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | example-diff-moderate-in-operation.png | 78.63 KB | mlncn |
| diff-module-diff.png | 39.21 KB | mlncn | |
| moderation-control-form.png | 40.88 KB | mlncn |
Comments
Comment #2
mlncn commentedIf/when #2875843: Display content moderation form on published revisions gets in, we would want this form on the additional relevant diffs analogous to the revision pages outlined there.
Comment #3
mlncn commentedMade a module as a proof of concept for this, would appreciate Diff module maintainer feedback on if it should/could become part of diff:
https://www.drupal.org/project/diff_moderate
Presently the main rough edge in my view is there cannot be a link to a diff if there has not yet been a published revision, so in those cases it falls back to linking to the latest revision, on the presumption that the Content Moderation form is enabled there as Drupal core allows and so provides an analogous experience.
(This link is provided as a views field plugin; there is not currently any other way to get to the revisions/moderate/ page other than URL hacking… probably it could also be a tab.)
Comment #4
mlncn commentedHere is what it looks like in operation:
Comment #5
heddnComment #6
acbramley commentedI think this is fine as a separate module