In Autopromote skip edit count lookup if requirement is 0 or invalid
authorTK-999 <tk.999.wikia@gmail.com>
Wed, 15 Feb 2017 10:34:52 +0000 (11:34 +0100)
committerKrinkle <krinklemail@gmail.com>
Sun, 21 May 2017 14:30:42 +0000 (14:30 +0000)
commitc182df6e38d50c449ff9c4d329088e5266ce041d
tree319ca7a0902e15b8a1f0d1da6d6d211baebacb8b
parenteb56a9255a27b23c683ca728b0d23e4c689c2405
In Autopromote skip edit count lookup if requirement is 0 or invalid

Autopromote makes a DB call to fetch user edit count when checking edit count requirements. We can skip this call if requirement is set to 0 or invalid (less than 0).

Bug: T157718
Change-Id: I7bcfa6e7e4991fe7b48bef84ad24621564261abc
includes/Autopromote.php
tests/phpunit/includes/AutopromoteTest.php [new file with mode: 0644]