API: Add prop=contributors
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 14 Nov 2013 21:07:52 +0000 (16:07 -0500)
committerSpringle <springle@wikimedia.org>
Tue, 7 Jan 2014 04:09:47 +0000 (04:09 +0000)
commite06ad6841901df582990718f885a5a655d8c7748
treea684c734feae4ff64132ba7a6999770a8abb63e2
parent89cd8a0bcda1db001c8002b407b726ee6e033ecb
API: Add prop=contributors

Certain applications, such as the generation of PDFs, could use a list
of all non-anonymous contributors to the page (as well as a count of
anonymous contributors) without crawling the output of prop=revisions.
This patch adds a prop module to retrieve this information.

Including the IP addresses of anonymous contributors is not realistically
possible without further schema changes, so that is not done here.
Additionally, revisions with DELETED_USER will be skipped entirely.

Change-Id: Iaff50dfb09016154901a5197aa14eb9f8febcbc5
RELEASE-NOTES-1.23
includes/AutoLoader.php
includes/api/ApiQuery.php
includes/api/ApiQueryContributors.php [new file with mode: 0644]