Page MenuHomePhabricator

Special:RandomInCategory should support specifying a namespace
Open, Needs TriagePublic

Description

Currently, Special:RandomInCategory returns a page from any namespace. It is often desirable to only return pages from a particular namespace (e.g. only articles, see T202009). Therefore, I am proposing that Special:RandomInCategory should have a second, optional dropdown for namespaces.

Event Timeline

Huji created this task.Aug 18 2018, 8:43 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 18 2018, 8:43 PM

Change 453646 had a related patch set uploaded (by Huji; owner: Huji):
[mediawiki/core@master] Special:RandomInCategory should support specifying a namespace

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

Huji added a comment.Aug 18 2018, 8:46 PM

I created a tentative patch, currently in WIP state. Since this proposal will introduce a new condition in the WHERE clause which may not be indexed, I would like someone else to take a look at this bare-bones version and tell me if it is worth pursuing or not.