Last modified: 2012-04-25 22:46:24 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 T38115, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36115 - Anon users can't change the quality at ProofreadPage extension anymore
Anon users can't change the quality at ProofreadPage extension anymore
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ProofreadPage (Other open bugs)
unspecified
All All
: Unprioritized major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: Wikisource
  Show dependency treegraph
 
Reported: 2012-04-19 23:39 UTC by enomil
Modified: 2012-04-25 22:46 UTC (History)
5 users (show)

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


Attachments
Screenshots as registered (top) and anonymous user (bottom) and the position of the quality buttons (313.20 KB, image/jpeg)
2012-04-20 14:17 UTC, enomil
Details

Description enomil 2012-04-19 23:39:12 UTC
After all the changes to Proofread Page Extension in 1.20wmf1 anon users can't change the quality of an page anymore. The main problem are the changes from proofreadPageUserName to mw.config.get( 'wgUserName' ) in proofreadpage.js. For anons the proofreadPageUserName was the IP (x.x.x.x) [1] but the wgUserName outputs null for IP users [2]. This causes problems inside the proofreadpage_body.php because it blocks when the ip user performs his request. (Hopefully this is the only problem.)

Another problem is the position of the quality input boxes for anon users. See the proofreadpage.js [3] at the function pr_add_quality_buttons, specially at the lines 949-957 (with the extrem sibling action). Get the div with the class editCheckboxes and append the span child there is much easier and works for all usergroups (it is default set and for anon it is only empty).

Anon users have the right to change the quality of a page on de.ws per Bug 27516

[1] http://de.wikisource.org/w/index.php?diff=1792330
[2] http://www.mediawiki.org/wiki/Manual:Interface/JavaScript#Page-specific
[3] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/ProofreadPage.git;a=blob;f=proofread.js;hb=ebd197c9f78afae1d2c21cca21fa5df474d80897
Comment 1 Beau 2012-04-20 13:47:12 UTC
Sorry, I wasn't aware that anonymous users could change page status. I have submitted a change I7e08c570e7c88a13f07515e2298fc003a8f3fc95 for review, which reverts the proofreadPageUserName change.

I did not understand the second part of the report.
Comment 2 enomil 2012-04-20 14:17:02 UTC
Created attachment 10444 [details]
Screenshots as registered (top) and anonymous user (bottom) and the position of the quality buttons

Two the sesond part of the bug: anonymous user doesn't have the options for marking as minor edit and for watching page, so the nextSibling action puts the quality buttons outside of the div with the class editCheckboxes. It makes more sense for having the buttons everytime at the same position (as the last child of the div) e. g. for styling like .editCheckboxes .quality4 {} (thats why they have no color at the time at german ws).
Comment 3 Beau 2012-04-20 14:24:03 UTC
I understand now (A picture is worth a thousand words). Can you make a separate report for that issue?
Comment 4 enomil 2012-04-20 14:31:47 UTC
Bug 36125
Comment 5 Mark A. Hershberger 2012-04-25 16:46:31 UTC
(In reply to comment #1)
> Sorry, I wasn't aware that anonymous users could change page status. I have
> submitted a change I7e08c570e7c88a13f07515e2298fc003a8f3fc95 for review, which
> reverts the proofreadPageUserName change.

Gerrit change #5428 -- closing pending review on gerrit
Comment 6 billinghurst 2012-04-25 22:46:24 UTC
There have always been restrictions on the ability of proofreading status change by anonymous users.  What are the restrictions now in place, ie. what changes, and can we say that we have discussed this with the Wikisource community prior to its implementation.  Bugzilla is a cloistered environment and not particularly useful for such discussions.

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


Navigation
Links