Page MenuHomePhabricator

Create a bot to clean old pages of testwiki
Open, LowPublic

Description

I just clean old abusefilters that was still enable, I think that we can do the same thing for pages. For example, after a 3year period.

Event Timeline

For which wiki is that? test.wikipedia.org?

Yes in the first case, and probably others testwikis later.
It can concern main NS, templates and modules that are not linked with other pages or with pages that are old too.

I asked, because you set the beta-as project, since test.wikipedia is not in that. If you want to run this bot on test2wiki, or on some wikis in the beta-cluster, you can ask me, I can assign you bot+sysop permissions then. (But I can't do that for testwiki).

Framawiki lowered the priority of this task from Medium to Low.Dec 31 2017, 1:37 PM

This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!

For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)

So, to make sure I'm reading this right:
Bot goes there each page not editing in the last year

  • Skips pages with incoming links
  • Skips templates and modules with existing transclusions
  • Skips categories with pages in them

And deletes the page? If this is a correct understanding, I should be able to do this

@Framawiki: Could you please answer the last comment? Thanks in advance!

So, to make sure I'm reading this right:
Bot goes there each page not editing in the last year

  • Skips pages with incoming links
  • Skips templates and modules with existing transclusions
  • Skips categories with pages in them

And deletes the page? If this is a correct understanding, I should be able to do this

Yes, that's it.
But this work may have some unknown impact (I'm thinking about tests, demos... that should not be edited). A small discussion (where?) may be needed prior the action.
On the other hand, it would be pretty easy and quick to restore deleted pages that are still used, manually or with better process.

So, to make sure I'm reading this right:
Bot goes there each page not editing in the last year

  • Skips pages with incoming links
  • Skips templates and modules with existing transclusions
  • Skips categories with pages in them

And deletes the page? If this is a correct understanding, I should be able to do this

Yes, that's it.
But this work may have some unknown impact (I'm thinking about tests, demos... that should not be edited). A small discussion (where?) may be needed prior the action.
On the other hand, it would be pretty easy and quick to restore deleted pages that are still used, manually or with better process.

I'm happy to write the bot, but I don't know where a discussion should be help - can you start one and let me know what the result is?

Is deletion and cleaning of old pages even needed? Content of various ages and styles could potentially be helpful when using testwiki to test things I would imagine? Unless testwiki is getting overrun with spam which is a separate discussion.