Revert post to a specific revision

AI-generated summary

techAPJ announced a new feature allowing Staff to revert a post to a specific revision by pushing a commit. The update introduces a “Revert” button visible at the bottom of every revision history entry; clicking it creates a new revision identical to the selected target, rather than deleting subsequent revisions. downey clarified that the action generates a new version instead of removing history, a point confirmed by techAPJ. The community responded positively, with mr8 and tobiaseigen expressing enthusiasm. downey and mr8 inquired about extending permissions to post authors or users with edit rights to handle accidental overwrites on wiki posts. Additionally, jomaxro asked if the feature was limited to Admins or available to all Staff. cpradio verified via the commit code and sandbox testing that the feature is indeed available to Staff. techAPJ confirmed that the feature is currently restricted to Staff and updated the initial post to reflect this. lloyd_tabb1 noted that this has been a long-requested feature.

I just pushed a commit that will allow Staff to revert a post to a specific revision.

“Revert” button will appear at the bottom of every revision, clicking on this button will revert the post to that specific revision.

Revert button will only be visible to staff, and reverting a post will create a new revision.

21 Likes

Cool! Does this remove all the revisions after the target revision number, or actually create a new version identical to the target version?

Nope.

Yes, that is exactly what it does. Creates a new version identical to the target version.

10 Likes

Very nice! Thanks! :thumbsup:

1 Like

Great new feature - thank you so much! :roller_coaster:

1 Like

Also, what about the author?

What about the ability to revert if the user has permission to edit the post? This could come in handy for accidental overwrites on a wiki post.

Can this feature be extended to Staff, not just Admins?

Already is.

Or so I believe based on the commit

Edit: And I just confirmed it on my sandbox

5 Likes

This feature is only available for staff as of now.

I edited first post to make it clear that this feature is available for Staff.

5 Likes

Awesome. I’ve been wishing for this feature!

1 Like