Page MenuHomePhabricator

Implement revert/undo for Wikibase Items
Closed, ResolvedPublic

Description

We need to specify and implement logic for reverting and and undoing edits.

There are three cases to consider:

  • rollback (reset): reset the content to some earlier version. Traditionally, this is done by simply editing the older version, and saving it (typically without changing enything). For Wikibase, the rollback itself should be an edit, so subsequent edits are again atomic. However, to maintain the status quo of this being a two-click operation, there should be a confirmation page/dialog shown.
  • undo: undo the effect of some earlier edit, without undoing later edits (reverse patch). The workflow for this is simple enough, but ItemHandler::merge3() needs to be implemented for this to work.
  • revert (admin only): rollback all revisions by the same user, starting at the current position. This is probably trivial, since it should work exactly like it works for text. Needs testing though.

Version: master
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=37991

Details

Reference
bz37683

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:29 AM
bzimport set Reference to bz37683.
bzimport added a subscriber: Unknown Object (MLST).

revert is a special case of reset, see bug 37991

Revert needs to be tested. Reset has its own bug, #37991 m and undo needs to be implemented.

Two new bugs: implement undo (13), test revert (3), and the reset #37991

Phabricator_maintenance renamed this task from Implement revert/undo for Wikibase Items (tracking) to Implement revert/undo for Wikibase Items.Aug 13 2016, 9:38 PM