wiki.techinc.nl/tests/phpunit/includes/libs/ParamValidator
MusikAnimal 0694cc02f1 WatchedItemStore: Enforce a maximum watchlist expiry duration
Introduces $wgWatchlistExpiryMaxDuration which is used instead of given
expiry if the given exceeds it. This is done in the storage layer. The
reasoning is to control the size of the watchlist_expiry table. Hence,
the max duration does not apply to indefinite expiries (since that would
mean now row in watchlist_expiry).

The frontend is responsible for disallowing expiries greater than the
max, if it choses to do so.

APIs should now pass in $wgWatchlistExpiryMaxDuration as the PARAM_MAX
setting for the 'expiry' type. They should also set PARAM_USE_MAX so
that the maximum value is used if it is exceeded.

Other APIs that watch pages will be updated in separate patches
(see T248512 and T248514).

Bug: T249672
Change-Id: I811c444c36c1da1470f2d6e185404b6121a263eb
2020-05-22 00:15:23 -04:00
..
TypeDef WatchedItemStore: Enforce a maximum watchlist expiry duration 2020-05-22 00:15:23 -04:00
Util UploadedFileStream: PHP 8 compatibility 2020-04-30 17:09:23 +00:00
ParamValidatorTest.php Move some validation logic from ApiStructureTest to ParamValidator 2020-02-04 20:29:35 +00:00
SimpleCallbacksTest.php ParamValidator: Use MessageValue! 2019-11-01 15:49:31 -04:00
TypeDefTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00