The /checkuser/v0/temporaryaccount/{name} REST API endpoint returns all the IP addresses used by a given temporary account. The TemporaryAccountHandler class which implements this endpoint selects the IP addresses from the cu_changes table. However, when event table migration is set to no longer write to cu_changes this will no longer include all the IP addresses that were previously included in the results.
As such, TemporaryAccountHandler::getData should be updated to read the IP addresses from all three CheckUser result tables depending on the migration stage for event table migration.
Acceptance criteria
- TemporaryAccountHandler::getData reads from cu_log_event and cu_private_event if $wgCheckUserEventTablesMigrationStage includes SCHEMA_COMPAT_READ_NEW