Help talk:Extension:GlobalPreferences

Jump to navigation Jump to search

About this board

This board is for asking for help with the GlobalPreferences extension.

Questions about installation and development should go on Extension talk:GlobalPreferences, and bug reports and feature requests on Phabricator:tag/globalpreferences

Octahedron80 (talkcontribs)

It will be good if I can share the same customized signature on every wiki.

Samwilson (talkcontribs)
NKohli (WMF) (talkcontribs)

@Octahedron80 There's several ideas and concerns on the ticket. The main concern is that users might customize their signature such that the links don't work in other projects. For example [[Benutzer: Blah]] works perfectly on German wiki but won't on other wikis and explaining this to users will be challenging.

Feel free to participate in the discussion and provide your thoughts. Thank you. :)

Octahedron80 (talkcontribs)

That might not be problem if we can convince users to use magic word like [[{{ns:3}}:Duh]], or make a new shorter symbol like %t.

Stryn (talkcontribs)

There's no good reason why signatures should even be modifiable. It's good that in Structured Discussions you can't customize your signature because it's added automatically.

Octahedron80 (talkcontribs)

The reason is easy: they do not want to use default (boring) signature. It is off topic on Global Preferences though.

Reply to "Signature"
Jc86035 (talkcontribs)

I'm a bit late, but I find there are a number of extant issues with the design. Overall the functionality is good but it's not as intuitive as it could be.

  • The check boxes aren't consistent with the OOjs UI, which makes the beta features page look a bit weird. I think it would be better to use OOjs elements, perhaps slider buttons like those used in VisualEditor, to differentiate from the already-used OOjs check boxes.
  • New users could be asked to choose whether they want their settings to apply across all WMF wikis.
  • It should be possible – particularly for the language option – for the user to choose to use the default options across all wikis, since some things have different defaults on different wikis.
TBolliger (WMF) (talkcontribs)

We decided not to use OOUI items because this is built on top of regular Special:Preferences which also does not use OOUI yet. We have an item on the backlog to address this when all of Special:Preferences is transferred — phab:T186842.

I agree that global should probably be default for new users moving forward (and even for most current users) but this is a much larger question that our team does not have the capacity to handle right now. We find that most new users only edit on one wiki and our hypothesis is that most new users do not visit Preferences at all [citation needed] so we believe this effort wouldn't really result in much benefit for newbies, given the work required.

Interesting point about allowing users to set the global preference to 'local wiki default'. I'm not sure it's necessary, since it's already the behavior if the "set global preference" box is unchecked. At this point the only overrides for defaults would be on a wiki-by-wiki basis via Special:Preferences.

Jc86035 (talkcontribs)

I suppose the case where someone wants to change e.g. all of their interface languages back to the default, because they'd manually changed the option on multiple wikis to English, is probably rare enough not to be something that needs to be fixed. It's a shame that so many minor improvements like those couldn't realistically be done because of how limited WMF developer resources are.

NKohli (WMF) (talkcontribs)

@Jc86035 Can you tell me why someone would like to set all their interface languages back to default? Special:GlobalPreferences settings completely override the settings made on Special:Preferences.

Jc86035 (talkcontribs)

I don't know, actually, but it was the first thing I could think of that would be different on most wikis. I suppose "reset all local settings" buttons could work better?

NKohli (WMF) (talkcontribs)

@Jc86035 Your global setting overrides your local settings everywhere - but in case you ever turn the global setting off, your local settings will still be there. We consider this to be a feature right now. The user does not have to worry about what they already set but if they have to go back, they still can. Resetting them would mean we don't remember their local wiki preferences anymore.

That idea is actually, technically speaking, better because it will help us save on database space if we don't store both the local and global values. It is on our list of things we can potentially implement if global preferences ends up taking too much database storage.

Reply to "Confusing interface"
Framawiki (talkcontribs)

Currently at the first view it's hard to understand what do all these checkboxes. What about clearly distinct global conf ones and normal preferences ? Perhaps adding a vertical border, that separate the two kind of options. Hope I'm clear :)

Keegan (WMF) (talkcontribs)

Yes, this (the issue and the solution with a vertical border) does make sense, thank you.

Keegan (WMF) (talkcontribs)
Verdy p (talkcontribs)

I also agree that two checkbox in front of the same option is confusive. The first checkbox in each row should have the label "Global" or "Globally". May be it should even appeart below instead of before the option to which it applies, or the two checkbox should be below the option label, but each one with a specific label:


 Option description
   [x] by default on all wikis   [x] on this wiki

(the term "global" can be confusive, the top of the form)

It is also not clear what is the effect of checking the first checkbox when the 2nd is not; it could mean - "apply the following ON/OFF setting on all wikis as set in the second checkbox, but as the 2nd is not check this would mean "apply the OFF setting on all wikis" - "apply the ON setting on all wikis" independantly of the local setting specified by the second one.

When an preference is not an ON/OFF setting but some choice in a combo, or some text, it may be clearer, but then we cannot show what is the value to use globally (the local and global settings could be very different strings or choices or could not be defined at all to use the default site setting).

In my opinion each local settings (ON/OFF, combo choice, text) should be followed by a checkbox below it to say:


 [x] Option description
   [x] apply this setting globally

 Radio setting: (o) Option 1    (o) Option 2    (o) Option 3
   [x] apply this setting globally

 Select: [ Chooose    v ]
   [x] apply this setting globally

 Input text field: [ ....            ]
   [x] apply this setting globally

When loading the form, local settings would be displayed and the second checkbox below each option would be always OFF. It should be clicked only to indicate that we want to copy the local value to the global settings.

In the Global settings however, the same form would display the same options but with their respective values, here also the second checkbox would display "[x] use this setting to override the local setting."

finally note that the "default site default" should not be taken into account: it is just used to define the local setting for the user içn case it has not been stored in the user profile. The same also applies to the global setting: an empty input field or absence of ON setting does not necessarily means "use site default", but just we want this setting to be OFF or empty even if the default site setting is ON or has some text. It may also happen frequently that many users will have a local setting stored locally which has the same value as the local setting, but it is not overridable/freely changeable by the site, if the site default is changed later. So site default settings, or global should be another option value we'll want to enable explicitly.

Some A/B test could confirm what is the best option for the layout.

Reply to "Add a border to the column"
NKohli (WMF) (talkcontribs)

This is a placeholder topic for what works well in GlobalPrefs. In a chat on #wikimedia-tech, I heard good things from Wiki13, revi, legoktm and addshore about it. :)

Keegan (WMF) (talkcontribs)

As someone who visits many, many different language wikis, I'm very much looking forward to setting my global language preference one time and never have to worry about it again, rather than having to change it with each new wiki I need to interact with in-depth.

Trustable (talkcontribs)

This feature seems to be what I need. I want to disable email notifications for all Wikipedias except in those where I'm active. I don't want to get those messages from Wikipedias, where I can't read a single letter (because I don't know the language) and never did an edit. Waiting for deployment :)

Reply to "Appreciation!"

Unclear which projects the 'global' settings apply to

4
Gryllida (talkcontribs)
NKohli (WMF) (talkcontribs)
Gryllida (talkcontribs)

Hello NKohli. I mean Wikimedia projects. People visiting the global preferences page may easily have no idea them.

Keegan (WMF) (talkcontribs)

Hello Gryllida, I understand what you are saying.

A new user decides to register an account on one of our wikis. We can assume that the user is likely unaware that we host 800+ wikis, and that their account can be connected to all of them.

One of the first things a new account might do is set up preferences. In doing so the person will notice these "global preferences" with no indication of what "global" means, and how the preferences are different from the first preferences landing screen they come to.

This problem makes sense to me. It seems like explanatory text in Special:Preferences along the lines of "Sets preferences on all wikis" or something like that might help.

I copied this over to a task, if we take a look at it.

Reply to "Unclear which projects the 'global' settings apply to"

Compatibility with betafeatures ext

4
Summary by NKohli (WMF)

The number of people using the beta feature does not appear on the beta tab for Special:GlobalPreferences anymore.

Framawiki (talkcontribs)

WHat about betafeatures stats ? With what statistics numbers present on the GlobalPref page correspond ?

Keegan (WMF) (talkcontribs)

Those who might know better can correct me if I'm wrong, but I believe the Beta Features stats being displayed are/will be only for the local wiki. They are not global stats.

MaxSem (talkcontribs)
NKohli (WMF) (talkcontribs)

Patch merged and deployed.

Exceptions to global settings?

3
Summary by NKohli (WMF)

Local exceptions can be set by checking local exception checkbox in Special:Preferences for each preference that has been made global.

Mfb (talkcontribs)

Is there a way to overrule global settings locally? I prefer the English interface for the English Wikipedia and the German one for the German Wikipedia. For everything else I would like to have one of these (doesn't really matter which one). As far as I can see this doesn't work with the new extension - I would have to have the same language in literally every Wiki.

Keegan (WMF) (talkcontribs)

You can override your global language setting. After you set the global preference, visit Special:Preferences on the wiki you would like to change. There will be a check box underneath the language setting to override the global language preference and set the local one. The check box does not appear in Special:Preferences if there is not a global language preference set.

Mfb (talkcontribs)

Thanks, that is very useful.

error message when i visit special:preferences

4
Summary by Samwilson

Has been fixed.

Gryllida (talkcontribs)
[WpSSHQpEE4AAABkhwY4AAAAP] /wiki/Special:Preferences BadMethodCallException from line 664 of /srv/mediawiki/php-master/extensions/VisualEditor/includes/VisualEditorHooks.php: Call to a member function get() on a non-object (null)

Backtrace:

#0 /srv/mediawiki/php-master/includes/Hooks.php(177): VisualEditorHooks::onGetPreferences(User, array)
#1 /srv/mediawiki/php-master/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#2 /srv/mediawiki/php-master/includes/preferences/DefaultPreferencesFactory.php(137): Hooks::run(string, array)
#3 /srv/mediawiki/php-master/extensions/GlobalPreferences/includes/GlobalPreferencesFactory.php(106): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
#4 /srv/mediawiki/php-master/includes/preferences/DefaultPreferencesFactory.php(1407): GlobalPreferences\GlobalPreferencesFactory->getFormDescriptor(User, RequestContext)
#5 /srv/mediawiki/php-master/includes/specials/SpecialPreferences.php(129): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext)
#6 /srv/mediawiki/php-master/includes/specials/SpecialPreferences.php(86): SpecialPreferences->getFormObject(User, RequestContext)
#7 /srv/mediawiki/php-master/includes/specialpage/SpecialPage.php(522): SpecialPreferences->execute(NULL)
#8 /srv/mediawiki/php-master/includes/specialpage/SpecialPageFactory.php(579): SpecialPage->run(NULL)
#9 /srv/mediawiki/php-master/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#10 /srv/mediawiki/php-master/includes/MediaWiki.php(861): MediaWiki->performRequest()
#11 /srv/mediawiki/php-master/includes/MediaWiki.php(524): MediaWiki->main()
#12 /srv/mediawiki/php-master/index.php(42): MediaWiki->run()
#13 /srv/mediawiki/w/index.php(3): include(string)
#14 {main}
Gryllida (talkcontribs)
NKohli (WMF) (talkcontribs)

Hmm, it doesn't happen for me. Trying to check what's going on. Thanks for reporting.

MaxSem (talkcontribs)

This has already been fixed.

Can't choose on which wiki to display my user page

5
Trizek (talkcontribs)

I've created my global page on meta.wikimedia.beta.wmflabs.org. When I opt it out on another wiki, it is still displayed there. I expected it not to be wisible.

FYI, create a central user page on meta.wikimedia.beta.wmflabs.org displays that message before saving:

Error: Warning: This action has been automatically identified as harmful. Unconstructive actions will be quickly reverted, and egregious or repeated unconstructive editing will result in your account or IP address being blocked. If you believe this action to be constructive, you may submit it again to confirm it. A brief description of the abuse rule which your action matched is: <div class="mw-parser-output"><p>Log possible Spam edits by new users II </p></div>

Thank you for working on it!

Keegan (WMF) (talkcontribs)

Global userpages still function the same way: you can set to have one and then the override is making a local page, or not have a global page. There are not local overrides for this feature in preferences.

Trizek (talkcontribs)

> There are not local overrides for this feature in preferences.

Not yet?

NKohli (WMF) (talkcontribs)

That's a good find. I created task T188423 to keep track of it. Thanks!

Edit: Whoops, I didn't see Keegan's comment before commenting. I think we can make this less confusing though.. Let's discuss this on Phab.

Trizek (talkcontribs)

Have a way not to be confused will be very much appreciated. :)

Reply to "Can't choose on which wiki to display my user page"
Jo-Jo Eumerus (talkcontribs)
Samwilson (talkcontribs)

Good question! The checkbox will select all the checkboxes below it (or unselect them, if it's unselected).

Just today actually we're rejigging this to be just a checkbox with "Select all options below to be global". Check out some screenshots at phab:T188358#4004802.

Do you think this will make it clearer?

Jo-Jo Eumerus (talkcontribs)

No, because it sounds like it not only makes them global but also enables them all. Maybe it would be clearer to have a checkbox "Make all selected preferences apply globally" for this function?

FR30799386 (talkcontribs)

Can we possibly just omit the "Make this setting global" check box, I mean if someone navigates to Special:GlobalPreferences then it's obvious that he wants to makes the preferences global and not local

Samwilson (talkcontribs)

You mean not have anything at the top at all?

Is it obvious that the left-side checkboxes are the things that enable each pref globally? (I think it is, but I've been looking at this form for too long!) Oh, and if you hover over those left checkboxes you do get a popup that says 'make this setting global'; that might help too, along with the background colour highlight.

And also, is it obvious that the checkbox at the top is just a convenience toggle thing that turns the ones below on and off and doesn't do anything in and of itself? And that it only applies to the current preferences tab?

I happy with whatever the consensus is! :)

Reply to "Unclear preferences text"