Background
Per the outcome of T292623: [SPIKE] Investigate getting global contribution information for IP Info [8H], we need to record in our ipinfo_ip_changes table that a logged-out user recently made a contribution. Because IP addresses are regularly reassigned (especially in the case of a roaming mobile device), we should purge these records regularly.
AC
- When a logged-out user makes a contribution, a corresponding row is inserted into the ipinfo_ip_changes table in a central database
- The ipc_ip_hex field is set to the hexadecimal representation of the IP, i.e. IPUtils::toHex( $ip )
- The central database is configurable
- $wgDBserver in development
- wikishared in production
[] When a logged-out user makes a contribution, a job is enqueued that purges rows that are older than X days (90, by default) see T299017
Notes
Understanding how a contribution is being log in the first place and how to hook it to IP info.