Background
T326415 adds buttons next to temporary account user names for requesting IP addresses used by the temporary account. Currently one IP address is revealed per click, either the latest IP address or the IP address used for the related revision (if there is one).
However, for a better patroller experience, T325238 asks for multiple reveals with a single click:
How are IPs revealed?
Two ways:
- Temp user reveal: On all other pages admins and checkusers will be able to reveal all IPs for a given temp account. In other words, revealing a temp account will unveil all instances of that temp account on that page irrespective of the IP address.
- Pair (temp user-IP) reveal: patrollers will only be able to reveal a single "temp account - IP address" pair at a time. In other words, revealing a temp account will unveil all other temp account instances on that page that are from the same IP address.
This task is for the first one: Temp user reveal.
Mock
Expected behavior and testing notes
- This is best tested locally
- Necessary config:
- $wgAutoCreateTempUser['enabled'] = true;
- $wgGroupPermissions['checkuser']['checkuser-temporary-account'] = true;
- $wgGroupPermissions['sysop']['checkuser-temporary-account'] = true;
- $wgGroupPermissions['user']['checkuser-temporary-account'] = true; (to test non-admins/checkusers)
- For admins and checkusers, clicking "Show IP" against a given temp username will reveal ALL instances of that temp username on the page irrespective of the IP address
- On pages with revision IDs (e.g. history pages, Special:RecentChanges), the IPs revealed may be different
- On pages with no revision IDs (e.g. Special:Log), the IPs revealed are the same - the latest IP used
- For non-admins/checkusers who have the checkuser-temporary-account right, clicking "Show IP" will only reveal the IP next to the clicked button

