Wikipedia:Bots/Requests for approval/DeadLinkBOT: Difference between revisions
Content deleted Content added
→Discussion: suggestion for the future |
→Discussion: an issue with the code and a general issue with bot courtesy, + add section headers for easier editing |
||
Line 86:
:::*I think you were actually talking about only having the edit conflict feature for the manually approval tests which is definitely wise. However, once it goes live, it would be pointless. I could pull the history and check for intermediate updates, but this would most likely actually take longer than the text parsing (which happens in a tiny fraction of a second.) I could, however, pull the history after an edit to just make sure there was no intermediate edit and auto-revert if there was any. LMK what you think. --[[User:ThaddeusB|ThaddeusB]] ([[User talk:ThaddeusB|talk]]) 21:26, 18 December 2008 (UTC)
====Trial====
{{BotTrial|days=8|edits=100}} <small>—<font face="Trebuchet MS">'''[[User:Reedy|<font color="darkred">Ree</font>]][[User talk:Reedy|<font color="darkred">dy</font>]]'''</font></small> 22:10, 18 December 2008 (UTC)
:I will begin trial edits after I add the logging features requested below. --[[User:ThaddeusB|ThaddeusB]] ([[User talk:ThaddeusB|talk]]) 22:22, 18 December 2008 (UTC)
Line 96 ⟶ 97:
:Whoops! I've been using perlwikipedia 1.0 since it is the "featured download" on Google code site linked to from here. It didn't support edit conflict detection (nor linksearch which I wrote code for myself). Your comment didn't make much sense to me, so I went and looked and its actually on version 1.5 now! I'm assuming this new version detects edit conflicts... I guess I better install that and read up on it instead of making some silly workaround. :) --[[User:ThaddeusB|ThaddeusB]] ([[User talk:ThaddeusB|talk]]) 04:54, 19 December 2008 (UTC)
====Trial complete====
{{BotTrialComplete}}
I rewrote the program to query the API directly (rather that using perlwikipedia.pm or an equivalent). This enabled more efficient resource usage and the ability to correctly detect edit conflicts. However, it did lead to some temporary bugs. Most embarrassingly, the bot's first 5 edits blanked pages due to a variable being mistyped. (Doh!) Of course, I promptly fixed any errors the bot made and corrected the code to avoid repeating them. :)
Line 126 ⟶ 128:
:It works incredibly well. Congratulations and thank you very much. [[User:Kittybrewster|Kittybrewster ]] [[User_talk:Kittybrewster|<font color="0000FF">☎</font>]] 08:52, 24 December 2008 (UTC)
: Something to consider for the future: add a "test" switch to the bot where it will save the proposed edits to its local hard drive instead of actually editing Wikipedia. You could then use diff, wdiff, and the like to make sure the edit is correct before running the bot for real. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 14:25, 24 December 2008 (UTC)
:Overall good work. I confess I haven't had time to go back behind you and audit everything, I'll take your word for it that you did a good job auditing the results. However, I did find a couple of issues:
:*There is a problem with non-ASCII character encoding: Pages with unusual characters do not log properly. The change to [[Texas–Indian Wars]] logged as [[TexasâIndian Wars]]. The change to [[Alonso Álvarez de Pineda]] logged as [[Alonso lvarez de Pineda]]. While this particular error is of no great consequences, please check the code for similar errors that may be more consequential.
:*Some people don't like user page material modified. Consider immediately self-reverting any change made in User: space and putting a note on the user's talk page pointing to the changed diff, and leave it up to them whether or not to commit the change. Alternatively, don't self-revert but do drop the user a note. I know most bots treat user pages the same as article space, but it's a trend I'd like to see change. [[User:davidwr|davidwr]]/<small><small>([[User_talk:davidwr|talk]])/([[Special:Contributions/Davidwr|contribs]])/([[Special:Emailuser/davidwr|e-mail]])</small></small> 14:49, 24 December 2008 (UTC)
|