mediawiki-extensions-AbuseF.../tests/phpunit
STran bf28dbce0e Allow variables to be restricted by user right
Some exposed variables (eg. `user_ip`) used in filters are sensitive
and need to only be available to restricted groups of users.

Back-end changes:
- Add `AbuseFilterProtectedVariables` which defines what variables are
  protected by the new right `abusefilter-access-protected-vars`
- Add the concept of a `protected` variable, the use of which will
  denote the entire filter as protected via a flag on `af_hidden`

New UX features:
- Display changes to the protected status of filters on history and diff
  pages
- Check for protected variables and the right to see them in filter
  validation and don't allow a filter to be saved if it uses a variable
  that the user doesn't have access to
- Check for the right to view protected variables before allowing access
  and edits to existing filters that use them

Bug: T364465
Bug: T363906
Change-Id: I828bbb4015e87040f69a8e10c7888273c4f24dd3
2024-06-04 06:54:53 -07:00
..
integration Allow variables to be restricted by user right 2024-06-04 06:54:53 -07:00
unit Allow variables to be restricted by user right 2024-06-04 06:54:53 -07:00
AbuseFilterConsequencesTest.php Convert af_hidden into a bitmask 2024-05-28 00:59:08 -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 Convert af_hidden into a bitmask 2024-05-28 00:59:08 -07: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 RCVariableGeneratorTest: Handle anonymous user test with temp accounts enabled 2024-05-23 09:41:05 +02:00
SchemaChangesHandlerTest.php Replace some deprecated functions 2024-05-04 21:32:04 +08:00