Last modified: 2014-06-30 06:43:37 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 T54811, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52811 - Remove "Enable section editing via [edit] links" user preference from MediaWiki core
Remove "Enable section editing via [edit] links" user preference from MediaWi...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.22.0
All All
: Normal enhancement (vote)
: ---
Assigned To: Tony Thomas
: easy
Depends on:
Blocks: 52807
  Show dependency treegraph
 
Reported: 2013-08-13 17:47 UTC by MZMcBride
Modified: 2014-06-30 06:43 UTC (History)
8 users (show)

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


Attachments

Description MZMcBride 2013-08-13 17:47:21 UTC
The "Enable section editing via [edit] links" user preference should be removed from MediaWiki core.

Users interested in hiding section-edit links can use per-user (or site-wide) CSS.

This should be an easy bug to resolve; marking it with the Bugzilla keyword
accordingly.
Comment 1 Tony Thomas 2013-12-04 17:34:04 UTC
I would like to prepare a patch for this bug. Please assign it to me.
Comment 2 Gerrit Notification Bot 2013-12-04 17:51:18 UTC
Change 99171 had a related patch set uploaded by 01tonythomas:
Removed "Enable section editing via [edit] links" from Mediawiki Preference.

https://gerrit.wikimedia.org/r/99171
Comment 3 db [inactive,noenotif] 2013-12-04 19:50:06 UTC
Just for the record:

<jorm> Can we just agree from this day forward that "put it in your user css" is not an acceptable solution for any problem, ever?

From https://bugzilla.wikimedia.org/quips.cgi?action=show

Maybe the relevant code form the parser itself can also be removed?
Comment 4 MZMcBride 2013-12-05 06:32:46 UTC
(In reply to comment #3)
> Maybe the relevant code form the parser itself can also be removed?

I'm not sure what you mean here.
Comment 5 Nemo 2013-12-13 21:33:39 UTC
Brian's caution (asking some up to date stats) makes sense, however it should be noted that AFAIK this preference is mainly a relic of the ancient past when section editing was the last new thing. :) Maybe we'll need this preference again if VisualEditor ever finds some magic to allow section editing again. :P
Comment 6 Gerrit Notification Bot 2014-01-21 13:20:10 UTC
Change 99171 abandoned by 01tonythomas:
Removed "Enable section editing via [edit] links" from preferences

Reason:
Rebase errors persistant :(

https://gerrit.wikimedia.org/r/99171
Comment 7 Gerrit Notification Bot 2014-01-21 13:20:39 UTC
Change 108673 had a related patch set uploaded by 01tonythomas:
Removed "Enable section editing via [edit] links" from preferences

https://gerrit.wikimedia.org/r/108673
Comment 8 Gerrit Notification Bot 2014-01-22 07:45:36 UTC
Change 99171 restored by 01tonythomas:
Removed "Enable section editing via [edit] links" from preferences

Reason:
Errors in Rebasing. 
Restoring for further tests..

https://gerrit.wikimedia.org/r/99171
Comment 9 Gerrit Notification Bot 2014-01-24 18:21:08 UTC
Change 108673 abandoned by 01tonythomas:
Removed "Enable section editing via [edit] links" from preferences

Reason:
Abandoned: Original patchset at :
https://gerrit.wikimedia.org/r/#/c/99171/

https://gerrit.wikimedia.org/r/108673
Comment 10 Gerrit Notification Bot 2014-01-24 18:47:49 UTC
Change 99171 merged by jenkins-bot:
Removed "Enable section editing via [edit] links" from preferences

https://gerrit.wikimedia.org/r/99171
Comment 11 Danny B. 2014-02-04 19:56:55 UTC
This is nonsense. It should not have been removed.

comment #0 says: "Users interested in hiding section-edit links can use per-user (or site-wide) CSS."

Exactly.

So there will be gadget created on sites to enable hiding. (because Jorm is totally true with 'Can we just agree from this day forward that "put it in your user css" is not an acceptable solution for any problem, ever?'

And gadgets are what? Saved in preferences. Hence we are where we were.
Comment 12 Andre Klapper 2014-02-05 12:47:04 UTC
See comment 0 and comment 5 for reasoning, plus this request ("Remove ... user preference") is obviously FIXED as the code commit has been merged. :)

I don't think this specific bug report is the place for a generic "I want less popular ancient options to be removed from the user preferences to reduce UI clutter" vs. "I want less people to have to edit their custom CSS or write Gadgets to do X" discussion - should maybe happen on mediawiki-l instead if there is interest.

However I agree that statistics on how many users have enabled such a setting might be helpful for future evaluation when killing some preferences.
Comment 13 MZMcBride 2014-02-18 02:24:35 UTC
(In reply to Danny B. from comment #11)
> This is nonsense. It should not have been removed.

Why's that?

> So there will be gadget created on sites to enable hiding.

Out of curiosity, has this happened anywhere?
Comment 14 Danny B. 2014-02-19 01:21:27 UTC
(In reply to MZMcBride from comment #13)
> (In reply to Danny B. from comment #11)
> > This is nonsense. It should not have been removed.
> 
> Why's that?

Described in the last line of comment #11.

> > So there will be gadget created on sites to enable hiding.
> 
> Out of curiosity, has this happened anywhere?

Yes.
Comment 15 MZMcBride 2014-02-19 01:33:14 UTC
(In reply to Danny B. from comment #14)
> Described in the last line of comment #11.

The last line of comment 11 is:
> And gadgets are what? Saved in preferences. Hence we are where we were.

Sure, but most users and most wikis don't want or need an extra user preference for this. These links are automatically shown based on user permission and they're able to be hidden on a site-wide basis, on a per-page basis, and on a per-user basis. I don't see a need for a user preference here. What's the use-case, exactly? Why would a user want to hide these links for only their account?

Regarding gadgets specifically, a few wikis might create such a gadget, but I doubt it. The overall MediaWiki experience (including that of most Wikimedia wikis) will have less clutter. This seems like a win to me.

>> Out of curiosity, has this happened anywhere?
> 
> Yes.

Where? Links welcome. :-)
Comment 16 TE 2014-06-29 14:24:02 UTC
I'm not a MediaWiki guru to be able to figure this out, but with the 1.23 release I can't figure out how to disable this again. It's referenced above:

"Users interested in hiding section-edit links can use per-user (or site-wide) CSS."

Great, but can someone update documentation on exactly *how* to do this? In my LocalSettings.php I have the old setting which is apparently ignored now:

  $wgDefaultUserOptions ['editsection'] = false;

I've dumped the DB and grepped and find only one reference to 'noeditsection' in the data, and my user account still shows the [Edit] on sections. The wiki indicates nothing about this change yet:

  http://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions

Can one of y'all please post exactly what needs to go where to disable site-wide this feature for anonymous, new and previous (logged in) users so that this change removing the feature can be put back into CSS?

I'd be happy to update the above wiki page if someone just tells me *how* to go about it as a low-speed wiki operator who doesn't live & breathe this code. Thanks!
Comment 17 MZMcBride 2014-06-29 14:38:24 UTC
(In reply to TE from comment #16)
> Can one of y'all please post exactly what needs to go where to disable
> site-wide this feature for anonymous, new and previous (logged in) users so
> that this change removing the feature can be put back into CSS?

You can try adding the following code to the page "MediaWiki:Common.css" on your wiki (untested, but should work...):

.mw-editsection { display: none; }
Comment 18 TE 2014-06-29 14:42:57 UTC
Got it -- I had to add !important, so this works:

  .mw-editsection { display:none!important; }

I'll get the wiki page updated with the new method, thanks!

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


Navigation
Links