Allow reverting to a revision directly from the revision itself

Created on 29 June 2023, over 1 year ago
Updated 6 July 2023, over 1 year ago

Problem/Motivation

Currently, in order to revert to a particular revision, one has to do it from the list of revisions, for example, /node/1/revisions. There is no way to revert from the view of the revision itself. This creates a cognitive load as well as a risk of reverting to the wrong revision. It would be much better if a user who is has permission to revert could do it from the revision itself, thus ensuring that they are reverting to the correct revision.

Steps to reproduce

On a website which automatically creates a new revision for each new draft of a page, while logged in as a user who has permission to revert:

  1. Click Content, then Add Content, then Basic Page.
  2. In the title field, type "Test reversion feature"
  3. In the body field, type "This is the first revision."
  4. Leave Published checked.
  5. Click Save.
  6. Click Edit.
  7. Change "first" to "second".
  8. Click Save.
  9. Click Edit.
  10. Change "second" to "third".
  11. Click Save.
  12. Click Edit.
  13. Change "third" to "fourth".
  14. Click Save.
  15. Click Revisions.
  16. Click the third revision in the list (the second revision from the bottom).

Desired result: There is a Revert button on this screen. Clicking that button reverts to this revision.
Actual result: There is no Revert button on this screen. I have to go back to the previous screen, remember which revision I chose previously, and accurately click the Revert button for that reversion. If I misremember, then I wind up reverting to the wrong revision.

Proposed resolution

Add a Revert button to /node/[node number]/revisions/[revision number]/view

Remaining tasks

User interface changes

Add a Revert button to /node/[node number]/revisions/[revision number]/view

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

11.0 🔥

Component
Content moderation 

Last updated 24 days ago

Created by

🇺🇸United States charles belov San Francisco, CA, US

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024