Fields required in a wrap-up report:
- Project description (as you would explain it to a layman who has no clue about MediaWiki). Please include screenshots with description - explaining how exactly the tool/extension works.
- Missing features/known bugs. Add links to phabricator tasks for the same and leave a short explanation.
- Demo server link
- Resource links (Project in gerrit/github, extension link on wiki etc.)
- Anything else you can think of, which can make contributing to this project easier for newcomers.
(Please edit this task itself to write your report. Make sure you complete it by 21st of August when end-term evaluations start.)
----
This was a project to add support for Flow, the Wikimedia Foundation's new discussion framework, to Pywikibot, a Python framework widely used for bots operating on Foundation wikis. (Screenshots are not particularly useful for this project, since this is effectively library code.) To accomplish this task, a module was implemented in Pywikibot with classes mapping to Flow data constructs, like topics and posts. Code supporting Flow-related API calls was also added, and tests were included for loading and saving operations. As it stands, Pywikibot-driven bots can now load Flow content, create new topics, reply to topics and posts, and lock and unlock topics.
Numerous delays during the course of the project, including but not limited to bugs and missing features in Pywikibot and Flow that were exposed by the new code, limited progress. In particularDespite some delays, a plan that included three phases was limited to the first phase and one task of the second.MVP, Howeverwhich roughly corresponded to Phase 1, the MVP,was completed and is already merged. which roughly corresponded to The code not implemented is encapsulated in the rest of T109228 (Phase 2) and T109229 (Phase 1,3). was completed and is already merged.There were also a few issues found in existing code within Flow and Pywikibot, The code not implementwhich are detailed is encapsulated in the rest of T109228 (Phase 2) and T109229 (Phase 3)n several tasks on this project's workboard.
My demo will be modifying the scripts/unusedfiles.py bot script to post unused file messages to user talk pages that use Flow. The demo will be run on the testwiki as described in T108969. The code can be found in https://gerrit.wikimedia.org/r/#/c/232737/.
User-level documentation can be found at https://www.mediawiki.org/wiki/Manual:Pywikibot/Flow. Here are a few screenshots of test results:
{F2088379} - test results and a locked topic
{F2088380} - nested replies
{F2088381} - more replies
{F2088382} - two topics
{F2088383} - lockable topic, currently unlocked
{F2088437} - messages to uploader from unusedfiles.py script