Page MenuHomePhabricator

Index known popular MediaWiki client libraries
Open, Needs TriagePublicFeature

Description

It would be nice to be able to search across known popular MediaWiki client libraries beyond pywikibot to help maintainers reason about the impact of MediaWiki API changes.

One example use case: search for usage of the writeapi right proposed for removal by T294397: Drop writeapi MediaWiki right. Removal of this right in 1.43.0-wmf.17 resulted in T371977: Removal of writeapi from siteinfo output breaks all mwclient-based bots, including stashbot (Server Admin Log) which likely would have been noticed if a global code search included https://github.com/mwclient/mwclient

Event Timeline

Determining what to index for this feels like an open question. There are lists of clients at https://www.mediawiki.org/wiki/API:Client_code and https://www.mediawiki.org/wiki/API:Client_code/All that various humans attempt to keep updated, but there is certainly no canonical registry of MediaWiki client libraries.

Attempting to determine client libraries in use by Toolforge tools using T371992: Index https://gitlab.wikimedia.org/toolforge-repos/ repos would be an interesting research project.

The other major fallout was T372017: AWB reads old writeapi user right, so stops working on wikis when it is removed. AWB is still using SVN so that sounds like a challenge.

The other major fallout was T372017: AWB reads old writeapi user right, so stops working on wikis when it is removed. AWB is still using SVN so that sounds like a challenge.

I don't know that codesearch has tried using it, but the hound backend supports svn as an origin.

It's still better to migrate off SVN in general. @Reedy wanted to look into it. I don't know if he did.