Page MenuHomePhabricator

Support multiple values for the namespace parameter in the ChangesList backend
Closed, ResolvedPublic8 Story Points

Description

Currently the namespace query string parameter only accepts one value, but for T163521: Replace "Namespace" widget in RCFilters with a user-friendly OOUI version we need it to accept multiple values. We also need the invert parameter to keep working, in that &namespace=1,2,3,4&invert=1 should show everything that is not in namespaces 1, 2, 3 or 4. The associated parameter does not need to work together with multi-value namespaces, because &namespace=2&associated=1 is equivalent to &namespaces=2,3.

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Change 351350 had a related patch set uploaded (by Sbisson; owner: Sbisson):
[mediawiki/core@master] RC Filters: support multiple namespaces

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

Change 351350 merged by jenkins-bot:
[mediawiki/core@master] RC Filters: support multiple namespaces

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

Checked in betalabs: negative numbers for negative namespaces, big numbers are accepted: &namespace=-1,-2,5501 will become &namespace=-1%2C-2&%2C5501 in url. The results retuned seem to be correct.

(I looked for the namespaces defined on wiki via: https://en.wikipedia.beta.wmflabs.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces&formatversion=2 )

Change 352542 had a related patch set uploaded (by Mattflaschen; owner: Mattflaschen):
[mediawiki/core@master] Change delimiter for multiple namespaces and tags to semi-colon

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

Change 352542 merged by jenkins-bot:
[mediawiki/core@master] Change delimiter for multiple namespaces and tags

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

Re-checked for pipe delimeter - works as expected.

Etonkovidova closed this task as Resolved.Jul 14 2017, 6:11 PM