Page MenuHomePhabricator

Missing interwiki prefixes
Closed, ResolvedPublic

Description

Author: beau

Description:
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.


Version: unspecified
Severity: major
URL: http://pl.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap

Details

Reference
bz19838

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:37 PM
bzimport set Reference to bz19838.
bzimport added a subscriber: Unknown Object (MLST).

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. ***
  • Bug 21169 has been marked as a duplicate of this bug. ***

beau wrote:

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.

Attached:

  • 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. ***