Page MenuHomePhabricator

Namespace select is blank
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

What is the problem?

The Namespace select component on Special:AllPages (and presumably other pages) is blank.

The HTML is just:

<select name="namespace" id="ooui-php-3" class="oo-ui-inputWidget-input oo-ui-indicator-down"></select>

It did not happen before https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1084130.

Steps to reproduce problem
  1. Go to Special:AllPages
  2. Click the Namespace select
Environment

Browser: Firefox 128
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.44.0-alpha (f0dfd5e) 07:04, 1 November 2024.

Event Timeline

JJMC89 raised the priority of this task from High to Unbreak Now!.Nov 1 2024, 4:06 PM
Dreamy_Jazz set the point value for this task to 1.

Found the cause: https://gerrit.wikimedia.org/g/mediawiki/core/+/refs/changes/30/1084130/11/includes/widget/NamespaceInputWidget.php#42

The default was set as the include option being an empty array, which excludes everything. It should instead be null.

Change #1085616 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/core@master] NamespaceInputWidget: Correctly set default for 'include'

https://gerrit.wikimedia.org/r/1085616

Fix has been +2'd. Should be ready for QA shortly on the beta cluster / locally.

Change #1085616 merged by jenkins-bot:

[mediawiki/core@master] NamespaceInputWidget: Correctly set default for 'include'

https://gerrit.wikimedia.org/r/1085616

I see the namespace select populated with what appear to be the correct namespaces in a few different special pages, including Special:Contributions, Special:Export (with $wgExportFromNamespaces) and Special:MovePage. When submitting the form with a namespace selected it appeared to return results from that namespace.

I tested with and without JavaScript.

I also briefly retested Special:GlobalContributions.

Test environments:

  NODES
Note 3
Project 4