Add basic IP range support to Special:Contributions
authorMusikAnimal <musikanimal@gmail.com>
Fri, 21 Apr 2017 16:17:59 +0000 (12:17 -0400)
committerMusikAnimal <musikanimal@gmail.com>
Tue, 5 Sep 2017 20:15:33 +0000 (16:15 -0400)
commitd09554b6ef498a0182110427af6a5b0545de1293
tree6289d2601a7c4afc2c6c22f6fc8619faf01861b8
parentf884d157f776afece12e0d986a8cd78574ed5335
Add basic IP range support to Special:Contributions

This works by using the new table introduced with T156318.

The only thing that differs from normal Special:Contribs is we are
showing the IP address next to each entry. This is it how it is
displayed if you request to see newbie contributions:
https://en.wikipedia.org/wiki/Special:Contributions?contribs=newbie

For the time being, Special:DeletedContributions does not support
IP ranges. Various other irrelevant links such as Uploads and Logs
are also hidden.

Refer to P4725 for a way to automate creation of edits by random
IPs in your dev environment.

IP::isValidBlock() has been deprecated with this dependent change:
https://gerrit.wikimedia.org/r/#/c/373165/

Bug: T163562
Change-Id: Ice1bdae3d16cf365da14c6df0e8d91d2b914e064
24 files changed:
RELEASE-NOTES-1.30
autoload.php
includes/DefaultSettings.php
includes/Revision.php
includes/installer/DatabaseUpdater.php
includes/page/PageArchive.php
includes/page/WikiPage.php
includes/specials/SpecialContributions.php
includes/specials/pagers/ContribsPager.php
includes/user/User.php
languages/i18n/en.json
languages/i18n/qqq.json
maintenance/deleteOldRevisions.php
maintenance/deleteOrphanedRevisions.php
maintenance/populateIpChanges.php [new file with mode: 0644]
tests/parser/ParserTestRunner.php
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/PageArchiveTest.php [new file with mode: 0644]
tests/phpunit/includes/RevisionStorageTest.php
tests/phpunit/includes/page/WikiPageTest.php
tests/phpunit/includes/specials/ContribsPagerTest.php
tests/phpunit/includes/user/UserTest.php
tests/phpunit/maintenance/backupTextPassTest.php
tests/phpunit/maintenance/backup_PageTest.php