mediawiki-extensions-AbuseF.../tests/phpunit
STran fe0b1cb9e9 Add user_unnamed_ip variable
After temporary accounts are enabled, filters that rely on an ip
in the `user_name` will fail (eg. `ip_in_range` and `ip_in_ranges`).
To keep these filters working:

- Expose the IP through another variable, `user_unnamed_ip`, that can be
  used instead of `user_name`.
- The variable is scoped to only reveal the IPs of temporary accounts
  and un-logged in users.
- Wikis that don't have temporary accounts enabled will be able to see
  this variable but it won't provide information that `user_name`
  wasn't already providing
- Introduce the concept of transforming variable values before writing
  to the blob store and after retrieval, as IPs need to be deleted from
  the logs eventually and can't be stored as-is in the amend-only blob
  store

Bug: T357772
Change-Id: I8c11e06ccb9e78b9a991e033fe43f5dded8f7bb2
2024-05-23 07:19:48 -07:00
..
integration Merge "Clean up ActionVariablesIntegrationTest" 2024-05-03 07:16:12 +00:00
unit Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
AbuseFilterConsequencesTest.php Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
AbuseFilterCreateAccountTestTrait.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterFilterUserTest.php Don't attempt to steal or create the FilterUser in CheckUserHandler 2024-01-31 19:32:52 +00:00
AbuseFilterRowsAndFiltersTestTrait.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
AbuseFilterUploadTestTrait.php Replace array_merge in tests with the [ ... ] syntax 2024-04-11 14:01:25 +02:00
ConsequenceGetMessageTestTrait.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
DegroupTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
LazyVariableComputerDBTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
RCVariableGeneratorTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
SchemaChangesHandlerTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00