wiki.techinc.nl/tests/phpunit/includes/user
daniel a8ee61d9d6 Implement rate limiting in Authority.
Rate limits will automatically be checked by definitelyCan(),
authorizeRead() and authorizeWrite(). The authorize methods also
increment the counter.

UserAuthority tracks which limits have already been incremented during
the current request, to avoid duplicate increments caused by code that
still calls pingLimiter directly.

DEPLOY: Risky! We SHOULD not hit rate limits more often, but we might.
Rate limit metrics should be monitored closely, see
<https://grafana.wikimedia.org/d/8oA6CWr4z/mw-rate-limiting-overview>.

Bug: T310476
Depends-On: Iebd62b0487af9172edaeae41c9b31aaf2f20fd06
Change-Id: Ic349f03b7040343815b60b0a2c84a5780326c797
2023-07-23 17:16:56 +00:00
..
ActorMigrationTest.php phpunit: Update @covers annotations for namespaced classes 2023-05-27 17:43:12 +08:00
ActorMigrationTest.sql Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
BotPasswordTest.php tests: Migrate calls to Database::update to UpdateQueryBuilder 2023-07-14 15:40:11 +02:00
DefaultOptionsLookupTest.php user: Set a default value for all searchNs* user preferences 2022-01-31 18:45:27 +00:00
ExternalUserNamesTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
LocalIdLookupTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00
PasswordResetTest.php Refactor SpecialPreferencesTest 2023-07-19 01:28:30 +02:00
TalkPageNotificationManagerTest.php tests: Pass Title to editPage() when already parsed 2023-07-15 00:45:47 +02:00
UserEditTrackerTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
UserGroupManagerTest.php Merge "user: Assert cross-wiki users in UserGroupManager" 2023-07-13 20:55:38 +00:00
UserGroupMembershipTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
UserOptionsLookupTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00
UserOptionsManagerTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00
UserTest.php Implement rate limiting in Authority. 2023-07-23 17:16:56 +00:00