API: Use ApiBlockInfoTrait in ApiQueryUsers and AllUsers
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 5 Sep 2019 18:24:28 +0000 (14:24 -0400)
committerMobrovac <mobrovac@wikimedia.org>
Wed, 18 Sep 2019 19:44:01 +0000 (19:44 +0000)
commit02d6dc2e4f610c5939fde30d37bbc1eca622a447
tree3a8a788e0d5cc851a0edfdc4c7d0067a3a5ef093
parent7612ebe9ca00892bdf73e7ad74a3ca2e11e6f590
API: Use ApiBlockInfoTrait in ApiQueryUsers and AllUsers

For efficient bulk querying, this means that
ApiQueryBase::showHiddenUsersAddBlockInfo() needs to return everything
needed by DatabaseBlock::newFromRow().

Since we're rewriting it anyway, we may as well also move
ApiQueryBase::showHiddenUsersAddBlockInfo() out into a trait of its own.

Bug: T232021
Change-Id: I9c5b17a232ecbfbffefc7e40608cf5684ce8a644
RELEASE-NOTES-1.34
autoload.php
includes/api/ApiQueryAllUsers.php
includes/api/ApiQueryBase.php
includes/api/ApiQueryBlockInfoTrait.php [new file with mode: 0644]
includes/api/ApiQueryUsers.php
tests/phpunit/includes/api/ApiQueryBlockInfoTraitTest.php [new file with mode: 0644]