Page MenuHomePhabricator

Update bot to support Flow and demo it
Closed, ResolvedPublic

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

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.

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 .

Change 232737 merged by jenkins-bot:
[pywikibot/core@master] [POC] Enable Flow support in unusedfiles.py

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