The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Withdrawn by operator.

Operator: Josh Parris (talk · contribs)

Automatic or Manually assisted: Automatic

Programming language(s): Python

Source code available: Once developed

Function overview: Simple link fixes and notification on the target of multiple broken #section links

Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/FrescoBot 3

Edit period(s): Continuous

Estimated number of pages affected: About 1500 links have the http problem; Category:Pages containing links with bad anchors has nearly 2000 pages (I guess 20% of these pages have a link that can be fixed with a case-insensitive match, so 400-ish edits); and I don't know how many pages have multiple broken #section links targeting them, but there's at least two.

Exclusion compliant (Y/N): standard in pywikipedia

Assert Edit flags used (exists, user/bot, none): none

Already has a bot flag (Y/N): Y

Function details: This task includes a shopping list of fixes:

  1. if an internal link is a redlink, and it starts with http:// , change it to an external link.
    • There are 1500 instances of this problem at the moment
    • select count(*) from pagelinks where pl_namespace=0 and pl_title like 'Http://_%';
      
  2. if a #section link is a case-insensitive match for an anchor on the page, change it to match that anchor.
    • This is a reasonably common case within broken #section links (see Category:Pages containing links with bad anchors)
    • Same-page links will be caught too
  3. Notification on the target page where there are the same broken #section links come from multiple pages.
    • Used when a section-header is changed, and that breaks multiple pages linking to that page, for example: Page [[footy]] has the section ===Center=== changed to ===Centre===, and any pages like [[Linebacker]] which linked to [[footy#Center]] is now broken. The notice will encourage editors to put ((anchor)) in front of the new section name with the old section name in it, to allow backwards compatibility. This message will look something like:

Assert Edit is not currently supported by pywikipedia's trunk release; it is in the rewrite release.

Discussion[edit]

Approved for trial (45 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Preferably 15 each of fixes one, two, and three. — The Earwig (talk) 21:02, 13 March 2010 (UTC)Reply[reply]

SELECT page_namespace, count(*) FROM page join pagelinks on page_id=pl_from WHERE pl_namespace=0 AND pl_title LIKE 'Http://_%' 
group by page_namespace limit 10;
Shows 4 hits in article space and 6 in File space. I don't think this point is worth pursuing. I'll keep at the others. Josh Parris 10:53, 14 March 2010 (UTC)Reply[reply]

Section fixes[edit]

These edits show this chunk of functionality is done. Josh Parris 02:46, 19 March 2010 (UTC)Reply[reply]

Popular #section targets[edit]

I will commence testing on this around the 10th of April. Josh Parris 23:58, 24 March 2010 (UTC)Reply[reply]

((OperatorAssistanceNeeded)) Any updates? The bot has been blocked, what's going on? — The Earwig (talk) 20:22, 11 May 2010 (UTC)Reply[reply]
Bot's blocked and I haven't yet figured out what caused it to do the thing it was doing that caused the blocking. Still no progress on the #section bizzo (been quite busy), but I do intend to complete this. Josh Parris 23:28, 11 May 2010 (UTC)Reply[reply]
Thanks. Please reply when you've figured out what the problem is and when you're willing to get back to work on this task. ("I haven't yet figured out what caused it to do the thing it was doing that caused the blocking"... o_O) — The Earwig (talk) 20:16, 19 May 2010 (UTC)Reply[reply]
Beep. Hows it going with the trial? Tim1357 talk 13:45, 13 June 2010 (UTC)Reply[reply]

A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. (user notified) Any updates? Mr.Z-man 15:50, 13 June 2010 (UTC)Reply[reply]

Withdrawn by operator. Given the lack of progress and lack of time to devote to this at the moment. I intend to reopen this when I've got the time available to devote to this. Josh Parris 20:32, 19 June 2010 (UTC)Reply[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 WT:BRFA.