mediawiki-extensions-AbuseF.../includes/Variables
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
..
LazyLoadedVariable.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
LazyVariableComputer.php Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
UnsetVariableException.php Create a dedicated namespace for variables-related classes 2021-01-02 18:16:48 +01:00
VariableHolder.php Re-add BC alias for the VariableHolder class 2023-03-13 13:46:09 +01:00
VariablesBlobStore.php Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
VariablesFormatter.php build: Upgrade mediawiki/mediawiki-phan-config to 0.13.0 2024-02-02 16:24:51 +00:00
VariablesManager.php Add new variable for last edit time 2024-04-10 23:12:45 +00:00