Motivation
See parent T325238: [Epic] IP Address Reveal for Privileged Users for details.
Proposed mockup
There would be a "show IP" option next to the temporary username (which replaces the IP address shown in this screenshot) which would reveal to show the IP address in place.
Will replace this with an actual mock before implementation begins.
Which IP should be shown?
Ideally we would have a new API endpoint, similar to TemporaryAccountRevisionHandler, that takes a list of log IDs.
It's not possible to look up an entry by log ID in the cu_changes table, but it will be possible in the cu_log_event table, added in T324907: Create separate tables for log events in CheckUser. The infrastructure for using the new table has been added, and is controlled by a config: CheckUserEventTablesMigrationStage
We could either:
add the new endpoint now, but make sure it returns the most recent IP if the cu_log_event table is not being used, or(we went with the other option)- check for now that the most recent IP is being correctly down on Special:Log, and keep this task open for when the migration is complete