Page MenuHomePhabricator

Update Block APIs to list namespace blocks
Closed, ResolvedPublic2 Estimated Story Points

Description

Add namespace objects to the Restrictions objects in the Block API code.

Currently, we have an array of Page objects. We should have a similar structure for an array of Namespace IDs.

Namespaces "names" do not need to be loaded from the DB as they are in the config.

This includes tests to ensure the right objects are persisted.

Event Timeline

aezell set the point value for this task to 2.

Change 473967 had a related patch set uploaded (by Dbarratt; owner: Dbarratt):
[mediawiki/core@master] Add tests to ensure that NamespaceRestrictions are returned from Block APIs.

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

Change 473967 merged by jenkins-bot:
[mediawiki/core@master] Add tests to ensure that NamespaceRestrictions are returned from Block APIs.

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

dbarratt moved this task from Review to Done on the Anti-Harassment (Bet — ב) board.