Page MenuHomePhabricator

Tag deletion logs performed with Nuke
Closed, ResolvedPublic2 Estimated Story Points

Description

When we analysed Nuke last year (T341564) we discovered that it is very hard to pull useful data about how, when, and where Nuke is used. We had to take the hacky approach of looking at edit summary texts, including pulling string translations for comparison.

It looks like some other external tools (e.g. Twinkle) use Tags in the deletion log to identify deletions performed with them. We could add a Nuke tag to identify deletions performed by Nuke.

Technical approach:
DeletePageJob allows for adding tags in the constructor. After a little bit of investigation, it looks like it may be that simple:
https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Nuke/ /refs/heads/master/includes/SpecialNuke.php#536
https://doc.wikimedia.org/mediawiki-core/master/php/classDeletePageJob.html
https://doc.wikimedia.org/mediawiki-core/master/php/classMediaWiki_1_1Page_1_1DeletePage.html

Event Timeline

Samwalton9-WMF renamed this task from Improve logging & instrumentation for Nuke to Tag deletion logs performed with Nuke.Sep 24 2024, 9:25 AM
Samwalton9-WMF updated the task description. (Show Details)
jsn.sherman updated the task description. (Show Details)
jsn.sherman moved this task from Triaged to To be estimated on the Moderator-Tools-Team board.
jsn.sherman set the point value for this task to 2.Oct 2 2024, 5:41 PM
jsn.sherman moved this task from To be estimated to Up next on the Moderator-Tools-Team board.

Change #1080786 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/Nuke@master] Tag deletion logs performed with Nuke

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

Test wiki created on Patch demo by SCardenas (WMF) using patch(es) linked to this task:
http://patchdemo.wmcloud.org/wikis/ce272af24a/w/

Change #1080786 merged by jenkins-bot:

[mediawiki/extensions/Nuke@master] Tag deletion logs performed with Nuke

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

Just tested on Beta, and this looks good!

Screenshot 2024-10-22 at 17.04.41.png (272×1 px, 111 KB)

Perhaps interesting enough for Tech News:

Deletions performed with the Nuke tool, which allows administrators to mass delete pages, will now be tagged with the 'Nuke' tag, enabling easier review and analysis of deletions performed in this way.

Scardenasmolinar subscribed.

Moving this to Done since it has been QA'ed in Beta. I'll hold on resolving it until we have the announcement in Tech News.

We have tested this on test wiki and it is working correctly. Resolving this ticket.