Page MenuHomePhabricator

Update bot to support Flow and demo it
Open, NormalPublic

Description

We discussed this during the meeting. The basic idea is to update an existing bot that posts on user talk to support Flow pages.

I've created such a user account, and James F turned it into a Flow board: https://test.wikipedia.org/w/index.php?title=User_talk:Pywikibot_Flow_Demo_User

There's also Pywikibot Flow Demo Bot, for the bot account.

Event Timeline

Mattflaschen-WMF assigned this task to happy5214.
Mattflaschen-WMF raised the priority of this task from to Normal.
Mattflaschen-WMF updated the task description. (Show Details)

The simplest case is the script unusedfiles.py. Note English Wikipedia is not supported (https://gerrit.wikimedia.org/r/#/c/231540/). However Farsi and Italian Wikipedia may be using this script. The template is used quite a bit on Italian Wikipedia: https://it.wikipedia.org/wiki/Speciale:PuntanoQui/Template:Immagine_orfana . @Ladsgroup may be about to help explain the status for Farsi Wikipedia.

Anyway, the test will run on test.wikipedia, so some templates will need to be created and added to the script configuration. The test user needs to upload a file, and then the script should post the message to their user talk.

happy5214 moved this task from Backlog to GSoC on the Pywikibot-Flow board.Aug 15 2015, 12:50 PM

Here is the current user talk notice template on fa.wp: https://fa.wikipedia.org/w/index.php?oldid=8880935 ; and the image page notice : https://fa.wikipedia.org/w/index.php?oldid=8312358

The Italian configuration is not operational. https://gerrit.wikimedia.org/r/#/c/232691
So, only the Farsi Wikipedia is set up to run this in production. The user talk template was definitely used, without subst prior to 2012 when the subst: was added.

Change 232737 had a related patch set uploaded (by Happy5214):
[POC] Enable Flow support in unusedfiles.py

https://gerrit.wikimedia.org/r/232737

It looks like some (all?) of this was undertaken and completed at testwiki https://test.wikipedia.org/wiki/Special:Contributions/HappyBot

@happy5214 Is there a clear description somewhere, that other bot authors/maintainers should follow in order to update their bots? Or do they just need to update their pywikibot scripts from the latest master, and it will automagically work? (I am not a dev, so hopefully that makes sense as a question. :)

@happy5214 Is there a clear description somewhere, that other bot authors/maintainers should follow in order to update their bots? Or do they just need to update their pywikibot scripts from the latest master, and it will automagically work? (I am not a dev, so hopefully that makes sense as a question. :)

Scripts have to be updated individually to use the Flow features provided by pywikibot.

There is documentation at https://www.mediawiki.org/wiki/Manual:Pywikibot/Flow .

Huji moved this task from Backlog to Needs Review on the Pywikibot board.Tue, Sep 10, 11:29 AM