Refactor database-related code in ApiQueryWatchlist
authorLeszek Manicki <leszek.manicki@wikimedia.de>
Tue, 19 Apr 2016 09:34:31 +0000 (11:34 +0200)
committerLeszek Manicki <leszek.manicki@wikimedia.de>
Wed, 29 Jun 2016 08:21:17 +0000 (10:21 +0200)
commit1a9460308e0ba4d57dd4dac67902af727d82561e
treeb4be8da6be3330d34b07081a857c84430374608a
parentac1868eab47b376e45aa919535a843d2d5e2f3ea
Refactor database-related code in ApiQueryWatchlist

This moves generating of a complex Watchlist and RecentChanges
related query to a WatchedItemQueryService class.
ApiQueryWatchlist class no longer contains any database-related
code.

Bug: T132565
Change-Id: I5a5cda13f8091baa430ac1a8e2176e0efd1ae192
autoload.php
includes/MediaWikiServices.php
includes/ServiceWiring.php
includes/WatchedItemQueryService.php [new file with mode: 0644]
includes/api/ApiQueryWatchlist.php
tests/phpunit/includes/MediaWikiServicesTest.php
tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php [new file with mode: 0644]
tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php