Last modified: 2012-12-24 10:37:30 UTC
removeUnusedAccounts.php needs to be revised. As you know, all new accounts now create a new user log entry. Therefore removeUnusedAccounts.php will only remove ancient accounts. This spec, * Could the specified user account be deemed inactive? * (No edits, no deleted edits, no log entries, no current/old uploads) Should be revised to * (No edits, no deleted edits, no log entries (except for new user log), no current/old uploads) and the code revised accordingly. Or at least an --option offered. Also of course the new user log entry should be cleaned up too. -- All this to make removeUnusedAccounts.php again work as originally intended!
Just hit this same issue with the new user log keeping this useful script from working. +1 vote to address this.
Created attachment 10671 [details] Quick fix to the issue Here's my quick fix for issue (patch based on Mediawiki 1.19.0)
Created attachment 10674 [details] In this version all traces of user also removed from logs We need to remove all traces of user registration from User and Recent Changes logs. Patch against mediawiki 1.19.0.
Thanks for the patch, Konstantin. You can use Developer access https://www.mediawiki.org/wiki/Developer_access to submit this as a Git branch directly into Gerrit: https://www.mediawiki.org/wiki/Git/Tutorial Thanks again! We appreciate your contribution. Putting your branch in Git makes it easier for us to review it quickly.
Created attachment 11554 [details] removeUnusedAccounts.php to ignore newusers logs and also clean logging/recentchanges Part of the patch didn't apply cleanly on my 1.20 - here is an updated patch. I was having a lot of automated registrations recently which I wanted to clean up - found this issue after some googling. Seems a relatively important fix as the script is currently non functioning. The patch is also simple, and easy to understand. Any chance someone can sort this ?
Hi Jools, how do you feel about getting developer access and submitting this patch for code review at http://gerrit.wikimedia.org ? This is how we are currently taking code contributions. The first time you need some extra steps but then you are all set to submit further contributions straight away. Plus, with developer access you get an option to get your own Labs instance to test your patches in a clean environment, without messing with your local installations. Have a look: http://www.mediawiki.org/wiki/Developer_access
By the way removeUnusedAccounts.php also removes User:Abuse filter the account for Extension:AbuseFilter.
Patch submitted. Change-Id: I7761a635261881f5a7ff7aaa8f8513d3d3a2149b
Change merged.