Feature summary : When pagetriage is set to patrol only one namespace, we should remove the namespace dropdown from the filters and the from filter status line.
Filter dropdown | Filter status line |
Benefits : Reduces unnecessary clutter
MPGuy2824 | |
Mar 1 2023, 3:10 AM |
F36885388: Untitled1.png | |
Mar 1 2023, 3:10 AM |
F36885387: Untitled2.png | |
Mar 1 2023, 3:10 AM |
Feature summary : When pagetriage is set to patrol only one namespace, we should remove the namespace dropdown from the filters and the from filter status line.
Filter dropdown | Filter status line |
Benefits : Reduces unnecessary clutter
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Do not show namespace filter if only one option is present | mediawiki/extensions/PageTriage | master | +31 -11 |
Could go even further and remove the custom namespace code completely ($wgPageTriageNamespaces), hard-coding PageTriage to only work in mainspace, simplifying the code. I'd probably be in favor of this, now that I think about it. YAGNI.
We would just need to be careful not to break draftspace. That may be controlled by different config variables, such as $wgPageTriageDraftNamespaceId = 118;, which we would want to leave in, and test that it's working properly.
As long as that doesn't make it more difficult to implement T50552: Make PageTriage wiki agnostic (perhaps other language wikis would want this software for other namespaces?), then that sounds good to me.
Change 952924 had a related patch set uploaded (by Sohom Datta; author: Sohom Datta):
[mediawiki/extensions/PageTriage@master] Do not show namespace filter if only option is present
Change 952924 merged by jenkins-bot:
[mediawiki/extensions/PageTriage@master] Do not show namespace filter if only one option is present