Page MenuHomePhabricator

User's namespaces to be searched default not updated after adding new namespace
Closed, ResolvedPublic

Description

When the new namespace is added and such namespace is added to $wgNamespacesToBeSearchedDefault then it should also add this namespace to all user's preferences. I guess some maintenance script will be necessary for that.


Version: unspecified
Severity: normal

Details

Reference
bz14609

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:14 PM
bzimport set Reference to bz14609.

Note: there's already maintenance/userOptions.php.

rainman wrote:

Did a quick testing, found couple of issues with new preferences. Scenario:

  1. Take a user created before the merge
  2. add some namespace to $wgNamespacesToBeSearchedDefault
  3. since old/new namespaces seem to get intersected, the modification of 2) doesn't really influence the user
  4. try changing some of namespaces this user searches via preferences by e.g. adding some namespace, error is returned: "There are problems with some of your input", changes are not saved

(In reply to comment #3)

Did a quick testing, found couple of issues with new preferences. Scenario:

  1. Take a user created before the merge
  2. add some namespace to $wgNamespacesToBeSearchedDefault
  3. since old/new namespaces seem to get intersected, the modification of 2)

doesn't really influence the user

  1. try changing some of namespaces this user searches via preferences by e.g.

adding some namespace, error is returned: "There are problems with some of your
input", changes are not saved

Seems to be because updating default options doesn't seem to purge the user cache.