Last modified: 2011-07-24 11:35:33 UTC
Api does not list all prefixes. 'w', 'm', 'meta' prefixes are ommited for WMF wikis. After a talk about it on #wikimedia-tech, there is a conclusion: api does not use interwiki cache.
The more generic issue is that there's no way to "get all prefixes" from the Interwiki class, leading the API (and extensions) to just select * from interwiki, which doesn't necessarily work when the cache is being used (eg: WMF). A) We need a getAllPrefixes() or similar method in Interwiki B) It would be nice to have native write/edit/delete support for interwiki prefixes in the Interwiki class
Changing to General, this is not an API specific issue.
*** Bug 20528 has been marked as a duplicate of this bug. ***
Hardcoding configurable things in bot is not a good idea, but those lists are empty: http://pl.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap http://en.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap http://en.wikiversity.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap
*** Bug 21169 has been marked as a duplicate of this bug. ***
Created attachment 6821 [details] Introduce Interwiki::getAllPrefixes, fix interwikimap when iw cache is enabled I have prepared a patch, which allows fetching interwiki map when caching is enabled. It adds new fields to cache, so dumpInterwiki.php maintenance script needs to be run afterwards.
*** Bug 20654 has been marked as a duplicate of this bug. ***
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
*** Bug 28743 has been marked as a duplicate of this bug. ***
*** Bug 20526 has been marked as a duplicate of this bug. ***
(In reply to comment #10) > *** Bug 20526 has been marked as a duplicate of this bug. *** Raising importance, because several things rely on this and the bug causes serious damage.
Patch applied in r92528 (modified to work with current code).
*** Bug 29962 has been marked as a duplicate of this bug. ***