Page MenuHomePhabricator

Drafts are discarded without any user confirmation
Closed, ResolvedPublicFeature

Description

Author: janesh

Description:
Reporting against revision 52757 (/trunk/extensions/Drafts)

Steps to reproduce ::

  1. Create few drafts for an article
  2. Click on a Discard link for a Draft

<< The draft is discarded immediately without any confirmation>>

Expected Outcome::

  1. User shall be prompted to confirm discard
  2. User shall have an option to Undo the discard if he wish
  3. Message shall be displayed after the discard to the user

Reference ::

Test Environment ::
OS : Vista , DB : MySQL 5.1.33 , PHP : 5.2.9-2, MediaWiki : 1.15.0
Browser : Firefox 3.0.11


Version: unspecified
Severity: enhancement
OS: Windows Vista
Platform: PC
URL: /mediawiki-1.15.0/index.php?title=Special:Drafts&discard=31&token=cc6927c13443c6021d3975082ca2d383%2B%5C&returnto=edit

Details

Reference
bz19689

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:41 PM
bzimport set Reference to bz19689.
bzimport added a subscriber: Unknown Object (MLST).

sumanah wrote:

Janesh, are you still running into this on current MediaWiki trunk?

I agree that an "Undo" option would be ideal (we don't need a pre-discard confirm if we offer a friendly "Your draft has been discarded - undo" notification later). This is a low priority enhancement though as we're talking about ephemeral content anyway.

I'm not sure adding an undo button is really possible. Once you hit discard, it's gone. It would be much easier to just add a confirmation button.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.
ashley claimed this task.
ashley subscribed.

Before discarding a draft a JS confirm() dialog is shown these days and I fixed that again in 28f48e343e675fc887ea2fe59025de7ce7d19208 in November 2020, so boldly closing this ticket as FIXED.