Last modified: 2010-10-26 02:37:51 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 T27294, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25294 - "Reject" button confirmation screen in Pending Changes
"Reject" button confirmation screen in Pending Changes
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Chad H.
: patch, patch-need-review
Depends on:
Blocks: 25293
  Show dependency treegraph
 
Reported: 2010-09-25 00:20 UTC by Rob Lanphier
Modified: 2010-10-26 02:37 UTC (History)
3 users (show)

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


Attachments
v1 of reject confirmation (4.70 KB, patch)
2010-10-20 07:21 UTC, Chad H.
Details
v2 of reject button (5.39 KB, patch)
2010-10-24 15:01 UTC, Chad H.
Details

Description Rob Lanphier 2010-09-25 00:20:49 UTC
When the "Reject" button is pressed, a confirmation screen is needed to show the list of revisions that are being rejected.  Details are here:
http://www.mediawiki.org/wiki/Extension:FlaggedRevs/Specifications/Reject_Pending_Revision#.22Reject.22_user_interface
Comment 1 Leinad 2010-09-25 13:49:20 UTC
It doesn't make sense, if you introduce confirmation screen, there will 2 the same  buttons:
* "Reject",
* "Undo".

Currently "Reject" button is very useful - it is improved version of "Rollback" button (you can automatically revert changes of all authors, not only of one author).
Comment 2 Rob Lanphier 2010-09-27 19:31:22 UTC
(In reply to comment #1)
> It doesn't make sense, if you introduce confirmation screen, there will 2 the
> same  buttons:
> * "Reject",
> * "Undo".
> 
> Currently "Reject" button is very useful - it is improved version of "Rollback"
> button (you can automatically revert changes of all authors, not only of one
> author).

There is a lot of resistance to creating something that works like rollback, especially because of the multi-author nature of it.  The fear is that good edits will get lumped in with the bad, and thus we'll lose edits and alienate new editors.
Comment 3 Leinad 2010-09-27 20:30:45 UTC
If you do not want "create something that works like rollback", I do not understand why you created "Reject"... you have "Undo" with the same funcionality.

So I will try to propose a compromise solution:
Could you create two new permissions relating to "Reject" button:
* 'soft-reject' - similar to "Undo",
* 'hard-reject' - similar to "Rollback".

And 'hard-reject' permission should be assigned by default for 'sysop' group (the same as 'rollback' permission).

Plus communities will be able to request to enable 'soft-reject' or 'hard-reject' permission for 'editor' group.
Comment 4 Rob Lanphier 2010-09-27 20:44:58 UTC
(In reply to comment #3)
> So I will try to propose a compromise solution:
> Could you create two new permissions relating to "Reject" button:
> * 'soft-reject' - similar to "Undo",
> * 'hard-reject' - similar to "Rollback".

Maybe in the future, but not for the November release.
Comment 5 Chad H. 2010-09-27 20:59:49 UTC
(In reply to comment #3)
> So I will try to propose a compromise solution:
> Could you create two new permissions relating to "Reject" button:
> * 'soft-reject' - similar to "Undo",
> * 'hard-reject' - similar to "Rollback".
> 

No, we do not need more permissions for this. Nor should it act like rollback and be automatic. Since you are potentially affecting multiple users, a confirmation should be required.
Comment 6 Leinad 2010-09-27 21:14:17 UTC
(In reply to comment #5)
> No, we do not need more permissions for this. Nor should it act like rollback
> and be automatic. Since you are potentially affecting multiple users, a
> confirmation should be required.

I proposed *compromise solution*. 'hard-reject' would not be the default for all projects.

For example on Polish Wikipedia all editors have 'rollback' permission and a lot of people complaining that can't revert all unsighted changes using rollback.
Comment 7 Rob Lanphier 2010-09-27 21:36:01 UTC
Hi Leinad, I know you're trying to reach a compromise.  It sounds like the Polish Wikipedia community has very different expectations surrounding how this feature should work than the English Wikipedia community does.

As I said before, we really don't want to make this an option for the November release.  The reason is that I believe it's going to take an actual deployment of the feature to have an informed and inclusive conversation about what options should exist for the feature.

One thing we have tentatively planned after November is a fork of this extension into two:  a "Pending Changes" variant where we strip away a lot of the complexity in the current codebase, and a "FlaggedRevs" version which is a continuation of the existing version.  Once we do that, we'll be in a better place to actually talk about making this optional.

That said, I'm not sure making it optional is really the right thing to do.  One reason why the code we have is so complicated is because we have so many options.  Hence, there still will probably be resistance after November to adding a new option, but it may be the case that the FlaggedRevs fork can actually carry the default that you would like to see.
Comment 8 Chad H. 2010-10-20 07:21:20 UTC
Created attachment 7741 [details]
v1 of reject confirmation

Work-in-progress on confirmation button. Currently brings you to the confirmation page, displays the information, and then goes nowhere when pressing OK.
Comment 9 Aaron Schulz 2010-10-21 18:41:52 UTC
A few things I noticed:
i) Code is missing "$form .= Html::closeElement( 'form' );"
ii) Also missing "$form .= Html::hidden( 'target', $oldRev->getTitle()->getPrefixedDBKey() );"
iii) Also missing "$form .= Html::hidden( 'wpEditToken', $wgUser->editToken() );"
iv) I assume that $wgUser is just there for the quick version (the class field "user" might be better, or a User argument)
Comment 10 Chad H. 2010-10-24 15:01:21 UTC
Created attachment 7753 [details]
v2 of reject button

Incorporated Aaron's feedback. Now fully functional, but ugly :)
Comment 11 Chad H. 2010-10-26 02:37:51 UTC
Committed in r75408 with one last minor fix.

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


Navigation
Links