Last modified: 2013-07-19 22:33:07 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 T51128, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49128 - removeUnusedAccounts.php states that it removes inactive accounts instead
removeUnusedAccounts.php states that it removes inactive accounts instead
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.22.0
All All
: Normal minor (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-04 14:12 UTC by Dan Jacobson
Modified: 2013-07-19 22:33 UTC (History)
1 user (show)

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


Attachments

Description Dan Jacobson 2013-06-04 14:12:21 UTC
$ php removeUnusedAccounts.php 
Remove unused accounts

Checking for unused user accounts...
Jini
Kevin
...found 239.

Run the script again with --delete to remove them from the database.
$ php removeUnusedAccounts.php --delete
Remove unused accounts

Checking for unused user accounts...
Jini
Remin
...found 239.

Deleting inactive accounts...done.

Hey I meant remove unused accounts not inactive accounts!

Don't give the Sysop a heart attack!
Comment 1 Dan Jacobson 2013-06-04 14:14:59 UTC
And document what "touched" means!
Comment 2 Dan Jacobson 2013-06-04 14:24:08 UTC
A massive search finds
-- user_touched should be set to the current time whenever:
--  * the user logs in
--  * the user saves preferences (if no longer default...?)
--  * the user's newtalk status is altered
in maintenance/archives/patch-cache.sql
Comment 3 Gerrit Notification Bot 2013-07-18 06:35:02 UTC
Change 74327 had a related patch set uploaded by Legoktm:
Change message to say deleting "unused" accounts rather than "inactive".

https://gerrit.wikimedia.org/r/74327
Comment 4 Gerrit Notification Bot 2013-07-19 22:30:39 UTC
Change 74327 merged by jenkins-bot:
Change message to say deleting "unused" accounts rather than "inactive".

https://gerrit.wikimedia.org/r/74327

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


Navigation
Links