While working on logging, Aaron Schultz suggested an addition to Renameuser logging on https://gerrit.wikimedia.org/r/#/c/5288/3/Renameuser_body.php (comments 3 and 4:
- I recommend using LogPage::addRelations( 'oldname', array( $oldusername ), $logid ). This way, you can also list renames to/from a user using LogEventsList::showLogExtract() by adding le_field, le_log_id conditions to $conds. RevisionDelete uses this to get log entries that effect specific revision IDs.
- Of course, you'd also need LogPage::addRelations( 'newname', array( $newusername->getText() ), $logid ).
As this was out of scope of a update, leaving this issue.
Version: master
Severity: normal
URL: https://gerrit.wikimedia.org/r/#/c/5288/3