Opened 15 years ago

Closed 10 years ago

#196 closed enhancement (fixed)

Need "revert all changes by x" tool and "revert guide to state at yyyy-mm-dd hh:mm" tool

Reported by: nick Owned by: Nobody
Priority: low Milestone:
Component: openguides Version: svn
Severity: normal Keywords: spam commandline, hackfestsummer2007-reviews


To deal with spam attacks, we need the following two tools:

  • revert all changes by username (be that a name or a ip)
  • revert all changes since a certain date

For the former, grab node id and version, delete those from content and metadata, roll node back one version, then copy content over.

For latter, grab last node id and version before date, delete all versions after on metadata and content, roll node back to last version before data, then copy content over.

Change History (8)

comment:1 Changed 15 years ago by nick

For the date one, can use "$wiki->list_last_version_before" from Wiki::Toolkit

comment:2 Changed 15 years ago by nick

One half of this now done in wiki toolkit, see bin/wiki-toolkit-revert-to-date

comment:3 Changed 15 years ago by nick

The "delete all entries from user" should probably go in the openguides admin. Confirm page would show all versions to delete, and ask for admin password. Could have a link to it from admin changes list.

comment:4 Changed 15 years ago by nick

Priority: highnormal
Severity: majornormal

Right, initial support for the zap a user's stuff in openguide's svn. Needs tests, support for deleting by host etc, but it's a start

comment:5 Changed 15 years ago by nick

Priority: normallow

Tests in, but still lacks delete by host. Oh, and the UI might want a bit of a tweak.

comment:6 Changed 14 years ago by Dominic Hargreaves

Owner: changed from Dominic Hargreaves to Nobody

comment:7 Changed 14 years ago by Kake

Keywords: hackfestsummer2007-reviews added
Type: defectenhancement

comment:8 Changed 10 years ago by bob

Resolution: fixed
Status: newclosed

I think this is fixed as we want it.

Note: See TracTickets for help on using tickets.