Last modified: 2011-07-24 11:35:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21838, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19838 - Missing interwiki prefixes
Missing interwiki prefixes
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://pl.wikipedia.org/w/api.php?act...
: patch, patch-need-review
: 20526 20528 20654 21169 28743 29962 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-20 09:07 UTC by Beau
Modified: 2011-07-24 11:35 UTC (History)
16 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Introduce Interwiki::getAllPrefixes, fix interwikimap when iw cache is enabled (6.21 KB, patch)
2009-11-25 10:41 UTC, Beau
Details

Description Beau 2009-07-20 09:07:32 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.
Comment 1 Chad H. 2009-07-20 13:15:34 UTC
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
Comment 2 Chad H. 2009-08-14 19:16:25 UTC
Changing to General, this is not an API specific issue.
Comment 3 Alexandre Emsenhuber [IAlex] 2009-09-07 11:15:47 UTC
*** Bug 20528 has been marked as a duplicate of this bug. ***
Comment 5 Alexandre Emsenhuber [IAlex] 2009-10-17 23:04:52 UTC
*** Bug 21169 has been marked as a duplicate of this bug. ***
Comment 6 Beau 2009-11-25 10:41:38 UTC
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.
Comment 7 Chad H. 2011-04-28 22:10:16 UTC
*** Bug 20654 has been marked as a duplicate of this bug. ***
Comment 8 p858snake 2011-04-30 00:09:32 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 9 Chad H. 2011-05-03 21:19:45 UTC
*** Bug 28743 has been marked as a duplicate of this bug. ***
Comment 10 Nemo 2011-06-25 14:43:08 UTC
*** Bug 20526 has been marked as a duplicate of this bug. ***
Comment 11 Nemo 2011-06-25 14:45:29 UTC
(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.
Comment 12 Robin Pepermans (SPQRobin) 2011-07-19 12:31:43 UTC
Patch applied in r92528 (modified to work with current code).
Comment 13 Robin Pepermans (SPQRobin) 2011-07-19 12:33:16 UTC
*** Bug 29962 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links