Last modified: 2012-05-24 17:50:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39016, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37016 - Use LogPage::addRelations in Renameuser logging
Use LogPage::addRelations in Renameuser logging
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Renameuser (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://gerrit.wikimedia.org/r/#/c/52...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-22 11:27 UTC by Siebrand Mazeland
Modified: 2012-05-24 17:50 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Siebrand Mazeland 2012-05-22 11:27:43 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links