For the MVP of IP Masking, the Growth team wants temporary users to behave the same way as anonymous users (T327420#8998167), with the exception of notifications (see T330509). According to the IP Masking guide, this means we need to do the following changes in the codebase:
Current code | Change to |
$user->isRegistered() | $user->isNamed() |
$user->isAnon() | !$user->isNamed() |
Those changes should be done in a batch of patches that gets merged relatively soon to avoid excessive merge conflicts. After that is done, the features should be checked on dewiki beta and/or locally (with IP Masking enabled, see betawiki config) for issues that might be IP Masking related, such as:
- Temporary users have access to a feature or a component that should be only available to registered users, or
- Registered users stopped having access to a feature that should be available to them
Changes made in this task should have no impact on the production wikis, unless and until IP Masking gets enabled there.
Components checklist
(Loosely based on the list from T326877: [Epic] Update Growth Team-owned products that may be affected by IP Masking; PageTriage not included because of T339252, Nuke not included because it has no calls to the relevant functions, Notifications not included because it should actually be available to temp users, NewUserActions/NewUserNotif removed because not Wikimedia-deployed and not responsible as per {MW.org docs](https://www.mediawiki.org/wiki/Developers/Maintainers))
Extensions
- GrowthExperiments (done in 938830)
- Thanks (no changes needed, functioning as expected)
-
StructuredDiscussions (aka Flow)(split to T342831: Temporary Accounts: Update StructuredDiscussions (Flow)) - Wikilove (done in 915630)
- MW-extensions-GuidedTour (no changes needed)
- MW-extensions-NewUserMessage (done in 943552)
- MW-Extensions-ORES (no changes needed)
Core components
-
Recent changes(split to T343322: IP Masking: Update Recent changes filters user registration filters for IP Masking; no other changes needed) - Watchlist (done in 948208)