Last modified: 2014-03-17 23:04:42 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 T53573, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51573 - Write and run maintenance script for AbuseFilter to purge old IP data from logs
Write and run maintenance script for AbuseFilter to purge old IP data from logs
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
master
All All
: High enhancement (vote)
: ---
Assigned To: Sam Reed (reedy)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-17 20:49 UTC by Sam Reed (reedy)
Modified: 2014-03-17 23:04 UTC (History)
5 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-07-17 20:49:05 UTC
Data in afl_ip should be purged 90 days after afl_timestamp

A maintenance script should be written to do this
Comment 1 Sam Reed (reedy) 2013-08-21 15:59:38 UTC
Bumping priority as I need to JDFI
Comment 2 MZMcBride 2013-08-21 16:24:20 UTC
(In reply to comment #1)
> Bumping priority as I need to JDFI

JFDI. :-)
Comment 3 Gerrit Notification Bot 2013-08-27 17:01:48 UTC
Change 81255 had a related patch set uploaded by Reedy:
Write maintenance script for AbuseFilter to purge old IP data from logs

https://gerrit.wikimedia.org/r/81255
Comment 4 Gerrit Notification Bot 2013-08-27 17:08:23 UTC
Change 81257 had a related patch set uploaded by Reedy:
Make puppet cronjob to run AbuseFilter/maintenance/purgeOldLogIPData.php

https://gerrit.wikimedia.org/r/81257
Comment 5 Gerrit Notification Bot 2013-11-19 23:08:08 UTC
Change 81255 merged by jenkins-bot:
Write maintenance script for AbuseFilter to purge old IP data from logs

https://gerrit.wikimedia.org/r/81255
Comment 6 MZMcBride 2013-11-20 04:04:24 UTC
Write part is merged. Awaiting <https://gerrit.wikimedia.org/r/81257> for the run part.
Comment 7 Andre Klapper 2014-02-17 19:24:44 UTC
Still awaiting update/merge of https://gerrit.wikimedia.org/r/#/c/81257/
Comment 8 Gerrit Notification Bot 2014-03-17 22:47:32 UTC
Change 81257 merged by Dzahn:
Make puppet cronjob to run AbuseFilter/maintenance/purgeOldLogIPData.php

https://gerrit.wikimedia.org/r/81257
Comment 9 Daniel Zahn 2014-03-17 23:02:05 UTC
notice: /Stage[main]/Misc::Maintenance::Purge_abusefilter/Cron[purge_securepoll]/ensure: created

---

root@terbium:~# crontab -u apache -l | grep purge

# Puppet Name: purge_securepoll
* 1 * * * /usr/local/bin/foreachwiki extensions/AbuseFilter/maintenance/purgeOldLogIPData.php >/dev/null 2>&1
Comment 10 Daniel Zahn 2014-03-17 23:02:43 UTC
somebody should still confirm if it actually deleted, later
Comment 11 Daniel Zahn 2014-03-17 23:04:42 UTC
did some lint cleaning of maintenance.pp and rebased on top of this, changing style to also not do the "selector inside resource" thing matanya voted down in reviews

https://gerrit.wikimedia.org/r/#/c/118790/

https://gerrit.wikimedia.org/r/#/c/118791/

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


Navigation
Links