mediawiki-extensions-AbuseF.../tests/phpunit/integration
Thalia 8de5b4e1aa Improve workflow for protecting filters with protected variables
Why:

* Protected variables were introduced to support temporary accounts
  so that temporary users could be filtered based on their IP address.
* Filters that use protected variables are protected in order to
  preserve privacy. This can't be undone.
* The current workflow for protecting filters is to have a 'protect'
  checkbox that can be checked for any filter, even one without
  protected variables, to the discretion of the editor. This has
  led to mistakes (see T37765).

What:

* Do not show the 'protect' checkbox on the form by default. Instead,
  show it when saving a filter with protected variables, after form
  submission. The user must check it to save the filter.
* Still show the checkbox in a disabled state with a warning message
  if a filter is already protected, so that the editor can easily see
  it is protected.

Bug: T377765
Change-Id: Ie5c94ac1399860ccdca4482508dd37ff07309764
2024-11-14 18:24:27 +00:00
..
Api Use explicit nullable type on parameter arguments (for PHP 8.4) 2024-10-26 14:38:46 +02:00
ChangeTags Use StatusValue::getMessages() instead of deprecated methods 2024-05-28 21:04:59 +00:00
Hooks Use namespaced classes 2024-10-19 21:55:40 +02:00
Maintenance Expand SearchFilters.php to search by consequence 2024-08-22 22:07:37 +01:00
Parser Use namespaced classes 2024-10-19 21:55:40 +02:00
Special Improve workflow for protecting filters with protected variables 2024-11-14 18:24:27 +00:00
Watcher tests: Use IDatabase for mocking instead of DBConnRef 2024-05-02 22:32:05 +02:00
AbuseFilterExtensionJsonTest.php Use namespaced classes 2024-10-19 21:55:40 +02:00
AbuseFilterServicesTest.php Add missing AbuseFilterServices::getHookRunner() 2023-06-14 17:35:43 +02:00
AbuseLoggerTest.php Add integration test to verify logs are saved in CheckUser 2024-03-01 16:11:33 +00:00
ActionVariablesIntegrationTest.php Use explicit nullable type on parameter arguments (for PHP 8.4) 2024-10-26 14:38:46 +02:00
EchoNotifierTest.php Use explicit nullable type on parameter arguments (for PHP 8.4) 2024-10-26 14:38:46 +02:00
FilteredActionsHandlerTest.php Use namespaced classes 2024-10-19 21:55:40 +02:00
FilterRunnerTest.php Use explicit nullable type on parameter arguments (for PHP 8.4) 2024-10-26 14:38:46 +02:00
FilterStoreTest.php Miscellaneous minor fixes 2024-07-03 02:31:38 +02:00
FilterValidatorTest.php Merge "Allow variables to be restricted by user right" 2024-06-04 17:20:17 +00:00
ProtectedVarsAccessLoggerTest.php Create protected variable access logs POSTSEND 2024-11-11 14:33:47 +00:00