Similar to the API, add the namespaces to the BlockList table view.
Pages are done in an ordered list and we should do similar for Namespaces.
Add tests for this additional info.
Similar to the API, add the namespaces to the BlockList table view.
Pages are done in an ordered list and we should do similar for Namespaces.
Add tests for this additional info.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add Namespace Restrictions to Special:BlockList | mediawiki/core | master | +70 -20 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | TheDJ | T190350 Epic: ⚡️ Partial blocks | |||
Resolved | • TBolliger | T2674 Allow users to be blocked from editing a specific article or all articles inside a namespace | |||
Resolved | • TBolliger | T179110 👩👧 Implement namespace blocking support | |||
Resolved | dmaza | T204985 Update block logs with namespace block details | |||
Resolved | Tchanders | T204986 Update Special:Block, Special:Unblock, API:Block, and API:Unblock to set/remove namespace blocks | |||
Resolved | None | T204988 Add tests for NamespaceRestriction enforcement | |||
Resolved | dbarratt | T204990 Update Special:BlockList with namespace blocks | |||
Resolved | dbarratt | T204991 Create NamespaceRestriction class & update block restrictions related classes to support NamespaceRestriction |
Change 475434 had a related patch set uploaded (by Dbarratt; owner: Dbarratt):
[mediawiki/core@master] Add Namespace Restrictions to Special:BlockList
I just noticed an odd thing... if you are using the API to create a block (example) you can specify * which is "All namespaces".
I think it's a little odd that we would allow you to create a partial block for all namespaces, but that's the same as someone getting a list of all of the namespaces and feeding that back to us (which is technically fine). Therefore since this is a feature of the API and this feature is hard-coded, I don't think we should do anything, but I wanted to make a note of it here.
@TBolliger Is there a limit to the number of namespaces I can add? I thought we decided 10? Or is the "natural" limit fine (i.e. there aren't that many namespaces anyways, so if someone selects them all, who cares?)
Good to know about the asterisk. I'd agree with your assessment — acknowledge it here but don't change anything.
I do not suggest a limit for namespaces. Do we need one?
Change 475434 merged by jenkins-bot:
[mediawiki/core@master] Add Namespace Restrictions to Special:BlockList