Last modified: 2009-01-26 13:51:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17949, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15949 - Make 'undo' function available through the API
Make 'undo' function available through the API
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
: 17051 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-12 12:06 UTC by Gurch
Modified: 2009-01-26 13:51 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Gurch 2008-10-12 12:06:55 UTC
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.
Comment 1 Roan Kattouw 2008-10-13 17:33:46 UTC
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.
Comment 2 Gurch 2008-10-13 18:01:03 UTC
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. :)
Comment 3 Roan Kattouw 2009-01-17 19:34:11 UTC
*** Bug 17051 has been marked as a duplicate of this bug. ***
Comment 4 Roan Kattouw 2009-01-17 19:34:56 UTC
Decided to implement this anyway in the next few days.
Comment 5 Roan Kattouw 2009-01-26 13:51:20 UTC
Done in r46260

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links