The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was  Approved.

Operator: ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 06:07, Saturday, June 11, 2022 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB, regexes given below, quarry:query/64398

Function overview: Blank inactive talkpages of inactive IPs which are not currently blocked and replace it with ((Blanked IP talk))

Links to relevant discussions (where appropriate): Community consensus was established at Wikipedia:Village pump (proposals)#RfC: Bot to blank old IP talkpages (permanent link)

Edit period(s): One time run

Estimated number of pages affected: at least 1.5 million, exact number unknown

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: The bot will edit IP talkpages which meet the following conditions -

  1. The IP talkpage has not received edits in the last 5 years
  2. The IP address is not currently blocked (including range blocks)
  3. There have been no edits from the IP address in the last 5 years

List of pages that meet this criteria will be fetched using quarry:query/64398. Since there are millions of IP addresses to check, I will be fetching pages by targeting smaller range of IPs at a time so that the query will not time out.

The pages in the list will be matched using AWB's find and replace in advanced mode. The regex used is .*\n*. This regex will match everything and replace it with nothing, thereby blanking the page. Then AWB's append function is used to add ((Blanked IP talk)) and the edit will be saved.

Alternate way to get list of pages

query/64398 takes a long time to execute and there is an alternate way of fetching pages over a broader range. This will be a backup documented for the purpose of this BRFA and I do not expect to use it much.

This involves using quarry:query/64414, quarry:query/64388 and User:MalnadachBot/expand ip.py. query/64414 gives list of IP talkpages which have received no edits in the last 5 years and when there has been no edit from the IP in the last 5 years. quarry:query/64388 gives a list of blocked IPs address (including IP ranges), the result of this will be fed to expand_ip.py so that I can get all individual IPs that are between range blocks. Then I will use AWB's list comparator to get A ∩ B' of query/64414 and the expanded IP list, i.e inactive IP talkpages of inactive IPs which are not currently blocked. This final list will then be processed by the same find/replace and append procedure as descried above.

Discussion[edit]

Yes, since this is a narrower criteria than what there is consensus for, I don't expect it to be a problem. The thing is quarry already struggles to generate this list of pages, trying to exclude gnome edits will make it harder. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 16:13, 11 June 2022 (UTC)[reply]
@ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ and Jonesey95: I imagine as the total number of pages quarry returns reduces it would be easier to then craft something for excluding gnome edits? --TheSandDoctor Talk 15:29, 19 June 2022 (UTC)[reply]
Yeah, I expect it will be easier after some time. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 16:46, 19 June 2022 (UTC)[reply]

 Approved. Under normal circumstances, I would prefer to leave the close for someone else. However, given the backlog, lack of recent BAG activity (myself included), and the fact that this task is uncontroversial and based on how well the trial went, I am inclined to make an exception for this. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 18:14, 9 July 2022 (UTC)[reply]

The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard.