Page MenuHomePhabricator

Make 'undo' function available through the API
Closed, ResolvedPublic

Description

Author: matthew.britton

Description:
Currently there is no API equivalent to the UI's 'undo' function. Imitating it is non-trivial since, unlike rollback or simple reversion, the result of an undo is not always identical to a previous revision of the page.


Version: unspecified
Severity: enhancement

Details

Reference
bz15949

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:23 PM
bzimport set Reference to bz15949.

Closing as WONTFIX.

Figuring out the new page text is a relatively simple operation on the contents of the revisions involved in the undo. It wouldn't be too hard for a bot to grab the revisions it needs, figure out what the text after undo would be and submit that.

matthew.britton wrote:

Heh, fair enough. (The further I get with this project, the less I feel I'm interfacing with MediaWiki and the more I feel I'm re-implementing random bits of it. :)

  • Bug 17051 has been marked as a duplicate of this bug. ***

Decided to implement this anyway in the next few days.