Page MenuHomePhabricator

Turn Interwiki Map page on meta into JSON
Closed, ResolvedPublic

Description

https://meta.wikimedia.org/wiki/Interwiki_map should really have a json file behind it, and the page that displays it running a scribunto/lua module to format the table nicely...

I don't know how many direct dependancies there on that page; hopefully only really MediaWiki-extensions-WikimediaMaintenance.

https://codesearch.wmcloud.org/search/?q=Interwiki_map&files=&excludeFiles=&repos= seems to concur

Event Timeline

Change #1035754 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/WikimediaMaintenance@master] dumpInterwiki.php: Convert to loading JSON page from meta

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

The interwiki map is (in theory) generated by Extension:Interwiki, which could probably be convinced to export its table as a JSON file as well. It seems like the https://noc.wikimedia.org/conf/interwiki.php.txt is actually the target output, I don't see why that can't be generated as an optional export by Extension:Interwiki as well.

I think @cscott's idea is also interesting, of letting people use Special:Interwiki to manage the tools instead of an on-wiki page while keeping the export process the same. But that's beyond the scope of this ticket, and probably requires on-wiki discussion somewhere.

I think @cscott's idea is also interesting, of letting people use Special:Interwiki to manage the tools instead of an on-wiki page while keeping the export process the same. But that's beyond the scope of this ticket, and probably requires on-wiki discussion somewhere.

We made the extension specifically "read only" for WMF deployment in rEIWA94e3d449ddf6: Add global $wgInterwikiViewOnly and setup function to allow conditional adding….

I wonder if we could have a "centralised" DB table (which may have performance issues).

But yeah, out of scope for this :)

Change #1035754 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMaintenance@master] dumpInterwiki.php: Convert to loading JSON page from meta

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

Keeping on radar, as I did testing and code review for this and the other stacked patches related to it.

I've updated the documentation on Meta. Anything left to do here?