Page MenuHomePhabricator

Create a log and revert function for Special:Nuke
Closed, DeclinedPublic

Description

There's some concern that a rouge admin can delete thousands of pages at once with Special:Nuke and it would take a long time to revert the damage, so I'm creating this bug. There should be some "revert" function built into the nuke interface. Also, there should be a separate log containing who used nuke (and be able to revert it from there).


Version: unspecified
Severity: enhancement

Details

Reference
bz15942

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:22 PM
bzimport set Reference to bz15942.
bzimport added a subscriber: Unknown Object (MLST).

mike.lifeguard+bugs wrote:

They're just normal deletions - I don't think another log is needed; seems like feature bloat (coming from me, that's saying something)

Deletions are easily reverted manually, or using a bot or script if there are many of them. I don't think mass-restore is needed either - has there been a case of "a rouge admin delet[ing] thousands of pages at once with Special:Nuke" that couldn't be easily restored using the methods I mentioned?

(In reply to comment #1)

They're just normal deletions - I don't think another log is needed; seems like
feature bloat (coming from me, that's saying something)

Deletions are easily reverted manually, or using a bot or script if there are
many of them. I don't think mass-restore is needed either - has there been a
case of "a rouge admin delet[ing] thousands of pages at once with Special:Nuke"
that couldn't be easily restored using the methods I mentioned?

But where do you get the scripts?

mike.lifeguard+bugs wrote:

(In reply to comment #2)

(In reply to comment #1)

They're just normal deletions - I don't think another log is needed; seems like
feature bloat (coming from me, that's saying something)

Deletions are easily reverted manually, or using a bot or script if there are
many of them. I don't think mass-restore is needed either - has there been a
case of "a rouge admin delet[ing] thousands of pages at once with Special:Nuke"
that couldn't be easily restored using the methods I mentioned?

But where do you get the scripts?

Write it yourself, or use pywikipediabot - there's probably a bunch floating around. Even if there weren't ready-made scripts I don't think we need this.

soxred93 wrote:

Ilmari Karonen on enwiki has a BRFA open for an undelete bot, could probably me easily modified to when such a case comes about.

But can the script be integrated in Mediawiki or made into another feature? Because that's what I'm asking.

The problem is that since they are just regular deletions, the software has no easy way of knowing what to un-nuke. To get the list of pages to nuke, it gets all the pages from recentchanges that a user has created. But once they're deleted, they're just an entry in the deletion log. How would it know what to undelete? The only real way to do this would be to create a log of "nuke" deletions, but creating another log type just to be able to more easily undo a highly unlikely situation seems excessive.

I also don't feel creating another log is worth the time and resources.