Wikipedia:Bots/Requests for approval/Dreamy Jazz Bot 3


 * 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

Dreamy Jazz Bot 3
Operator:

Time filed: 10:59, Monday, February 4, 2019 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: On request

Function overview: Extending Task 2 to create portal talk pages with WikiProject tags from the associated root article.

Links to relevant discussions (where appropriate): User_talk:Dreamy_Jazz

Edit period(s): Daily on new portals, monthly on all portals (as Task 2 already does)

Estimated number of pages affected: At max an extra 20 pages created a day, first run with the extension around ~600 pages created

Exclusion compliant (Yes/No): No

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

Function details: The Task 2 code would be extended to create root portal talk pages (will not create subpage talk pages). The bot would take the WikiProject tags from the root article only, creating the talk page with these templates (with class=portal), and adding WikiProject Portals and Portal talk after these WikiProject tags. The bot won't affect existing portal talk pages. If the bot sees that there are more than 3 wikiproject banners, it will encase it in the WPBS template. The root article would be detected from the portal using the same code as already being used for the currently approved Task 2. The bot won't add WikiProject banner templates when they are listed on User:Dreamy Jazz Bot/Task 2.1/exclude. This list is checked at the start of the run, so WikiProject banner templates added to the list mid run won't be excluded from addition until the next run.

Edits would be marked as being Task 2.1, as the creation of portal talk pages is different enough to the original purpose of Task 2. For the purposes for disabling, Task 2.1 would be disabled by the Task 2 shutdown page (the shutdown page will shutdown both Tasks to ensure that serious enough errors, which require a shutdown, don't affect the other task's edits).

For example the bot would create Portal talk:The Incredibles with:

Discussion
BAG assistance needed Dreamy Jazz 🎷 talk to me &#124; my contributions 12:46, 12 February 2019 (UTC)
 * Sorry for the long wait. I should be upfront that I am not that familiar with how the new portal system works, but this seems like a sane and uncontroversial task. Since we're creating portal talk pages en masse, and forever and always, I'd personally like a little more input. I don't know why there would be opposition, but we've only had one user chime in the discussion on your talk page, aside from the editor who proposed the task. Wikipedia talk:WikiProject Portals I assume is the best venue, as Wikipedia talk:Portal appears to be more about discussing guidelines for portal creation. If we can get just a few OKs then I think we're ready to move forward. &mdash; MusikAnimal  talk  05:56, 20 February 2019 (UTC)
 * , I have 4 supports with no opposes over at Wikipedia_talk:WikiProject_Portals/Design. Is this enough? Dreamy Jazz 🎷 talk to me &#124; my contributions 16:10, 23 February 2019 (UTC)
 * That'll do, thank you. &mdash; MusikAnimal  talk  20:57, 23 February 2019 (UTC)
 * The WikiProject Portals template should go at the top of the block of wikiprojects, rather than below the rest. That's because being a portal is what differentiates this type of page from other types, and therefore, its WikiProject is the most relevant. Portal questions wouldn't be as relevant on the subject WikiProjects, for example, and they would just wind up referring the asker to the Portals Project. Please have the bot place WikiProject Portals at the top. Thank you.  &mdash; The Transhumanist   20:02, 20 February 2019 (UTC)
 * P.S.: (ping)  &mdash; The Transhumanist   20:03, 20 February 2019 (UTC)
 * that can be done. I'll make the change in the code now. Dreamy Jazz 🎷 talk to me &#124; my contributions 20:54, 20 February 2019 (UTC)
 * Thank you.  &mdash; The Transhumanist   21:04, 20 February 2019 (UTC)
 * I've taken the liberty of updating the "function details" above to reflect this requirement. &mdash; MusikAnimal  talk  20:57, 23 February 2019 (UTC)
 * thanks. Dreamy Jazz 🎷 talk to me &#124; my contributions 10:26, 24 February 2019 (UTC)

Low-risk task with sufficient support. or sigma/summary.py can be used to identify the edits, so no need to link to them here after the trial. &mdash; MusikAnimal  talk  20:57, 23 February 2019 (UTC)
 * , currently running now. Thanks, Dreamy Jazz 🎷 talk to me &#124; my contributions 21:20, 23 February 2019 (UTC)
 * Edits may take a while to appear. This is due to the bot running all other checks at the same time for all portals. Two edits for todays portals seem fine. Going to let it run for now. Dreamy Jazz 🎷 talk to me &#124; my contributions 22:02, 23 February 2019 (UTC)

Ran into no errors. I have added two WikiProject banners to the exclude list after the run (Template:WP1.0 - rated manually by editors and Template:WikiProject Guild of Copy Editors - this being added means a member of the guild of copy editors significantly copy edited a page) and then removing these banners from the created portal talk pages. I have already tested the exclude page without affecting the wiki. Dreamy Jazz 🎷 talk to me &#124; my contributions 10:22, 24 February 2019 (UTC)
 * Good catch on the exclusions. I removed some lingering templates from Portal talk:British Airways, Portal talk:Boats and Portal talk:Atlantic Ocean. You may also want to exclude WikiProject Geographical coordinates. I know you said you tested it already, but I'd like to see another run with the exclusions in place. I suspect with another 50 edits we can confirm the exclusions work. I'm not sure what your implementation is, but pro-tip: remember to remove underscores from page titles when doing comparisons (or the opposite), since the source on the article talk page could have, for instance. &mdash;  MusikAnimal  talk  20:34, 25 February 2019 (UTC)
 * , thanks. It is running now. I think this is automatically handled by pywikibot, as the title function for a page returns the title with spaces (unless you tell it to include underscores). Thanks for the tip anyway. Dreamy Jazz</i> 🎷 talk to me &#124; my contributions 23:01, 25 February 2019 (UTC)
 * , . Run went very well. Added one more template (Template:V0.5) to the exclude list after the run. Over the 50 pages no templates already on the exclude list were not added on any talk page. Dreamy <i style="color:#d01e1e">Jazz</i> 🎷 talk to me &#124; my contributions 08:48, 26 February 2019 (UTC)
 * Managed to leave the portal talk creation part of the bot enabled. The bot created one talk page. My fault for forgetting to disable it. Dreamy <i style="color:#d01e1e">Jazz</i> 🎷 talk to me &#124; my contributions 11:09, 26 February 2019 (UTC)

I will note that in the function details, you wrote If the bot sees that there are more than 3 wikiproject banners, it will encase it in the WPBS template. I think you meant 3 or more banners, which is perfectly fine. As far as I can tell the bot is staying true to the >= 3 figure. &mdash; MusikAnimal  talk  02:26, 27 February 2019 (UTC)
 * 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.