List Partial Block details in ApiQueryBlocks and ApiQueryUserinfo.
authorDavid Barratt <dbarratt@wikimedia.org>
Tue, 26 Jun 2018 23:12:05 +0000 (19:12 -0400)
committerDbarratt <dbarratt@wikimedia.org>
Wed, 24 Oct 2018 16:26:32 +0000 (16:26 +0000)
commitb3014df3b662bb7eb92586536b7dab59643d110f
tree83d138d46382811135ef9aa6a7d84bfbac87c294
parent170c49d61cb8441189cfad7f2c67b73057f6bc09
List Partial Block details in ApiQueryBlocks and ApiQueryUserinfo.

The ApiQueryBlocks and ApiQueryUserinfo endpoints will now return whether or not the block is
sitewide or partial. Partial block restrictions can be returned with ApiQueryBlocks.

Bug: T197141
Change-Id: I76eb4cac4dc989c621a00a39996faebd0eb9892c
includes/api/ApiQueryBlocks.php
includes/api/ApiQueryUserInfo.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
tests/phpunit/includes/api/ApiQueryBlocksTest.php [new file with mode: 0644]
tests/phpunit/includes/api/ApiQueryUserInfoTest.php [new file with mode: 0644]