Page MenuHomePhabricator

R3. Add "undo" functionality to edited Flow posts (Russian)
Closed, ResolvedPublic8 Estimated Story Points

Description

Add "undo" functionality to edited Flow posts.

This is a prereq for editing other users' posts.

History page

For edits to an existing Flow post, the history item should have an (undo) link.

Example:

( cur | prev | topic ) 00:49, 11 February 2015 . . DannyH (WMF) (Talk | contribs | block) edited a comment on "Major misconception of what is a source." . . (-1)‎ (undo) (hide)

Diff page

For edits to an existing Flow post, the diff page should have an (undo) link next to the "Version" line.

Example URL: http://flow-tests.wmflabs.org/w/index.php?title=Topic:Sap5csuvzewtf9z4&action=compare-post-revisions&topic_newRevision=sbkkdrvx3hzsd740

Example text:

Version by DannyH (WMF) from 36 minutes ago (undo)

Undo page

Clicking an (undo) link takes you to action=edit&undo

Example URL: http://flow-tests.wmflabs.org/w/index.php?title=Chameleons&action=edit&undoafter=557&undo=558

Text:

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Then a comparison of "Latest revision" and "Your text", with an edit window and a save button.

Error handling

If the edit can't be undone, go to an undo page with a red error message: "The edit could not be undone due to conflicting intermediate edits."

Example URL: http://flow-tests.wmflabs.org/w/index.php?title=Chameleons&action=edit&undoafter=556&undo=557

Example screenshots

Article history page undo link:

article_history_undo_link.jpg (500×1 px, 315 KB)

Article diff page undo link:

article_diff_page_undo_link.jpg (787×1 px, 843 KB)

Article action=edit&undo page:

article_undo_process.jpg (794×1 px, 913 KB)

Article undo error handling:

article_page_undo_error_handling.jpg (746×1 px, 539 KB)

Current Flow history page, no undo link:

flow_history_needs_undo.jpg (595×1 px, 468 KB)

Current Flow diff page, no undo link:

flow_prev_page.jpg (798×1 px, 687 KB)

Details

Event Timeline

DannyH raised the priority of this task from to Medium.
DannyH updated the task description. (Show Details)
DannyH moved this task to Team discussion on the Collaboration-Team-Triage board.
DannyH subscribed.
DannyH renamed this task from Add "undo" functionality to edited Flow posts (Russian) to R3. Add "undo" functionality to edited Flow posts (Russian).Feb 25 2015, 9:13 PM

Since this is tagged Roadmap, standard roadmap questions apply, see T92874#1124163.

Change 194047 had a related patch set uploaded (by Mattflaschen):
Undo

https://gerrit.wikimedia.org/r/194047