Last modified: 2010-06-16 18:44:46 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 T25999, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23999 - Provide method to store API/DB information for interwiki sites
Provide method to store API/DB information for interwiki sites
Status: RESOLVED DUPLICATE of bug 20646
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-16 12:37 UTC by tisane2718
Modified: 2010-06-16 18:44 UTC (History)
2 users (show)

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


Attachments

Description tisane2718 2010-06-16 12:37:14 UTC
As suggested at http://www.mediawiki.org/wiki/User:Peter17/Reasonably_efficient_interwiki_transclusion#Adding_fields_to_the_interwiki_table . This will also help with other interwiki integration projects. The alternative is to use configuration settings arrays in InitialiseSettings.php/LocalSettings.php.
Comment 1 tisane2718 2010-06-16 12:51:41 UTC
I guess this field should be a varchar(255) binary?
Comment 2 Chad H. 2010-06-16 13:01:54 UTC
Generalizing this bug (which is actually one of two things discussed in bug 14024, but we never split it off).

What we need is to expand the Interwiki class to give us information about other wikis API urls (or potentially DB info, if they're in a farm like Wikimedia). We can store this information in the interwiki table (for most people) and the interwiki cache (for Wikimedia).

Configuring this stuff in LocalSettings is a Bad Idea because we already store interwiki data somewhere, so it makes sense to put it where that already is.
Comment 3 tisane2718 2010-06-16 13:38:34 UTC
On second thought, might it not be better to, instead of adding a bunch of fields to the interwiki table, just add a field that contains an integer that is the primary key of another table of data about remote wikis? I see a couple advantages to that:
(1) Some wikis will have more than one interwiki prefix, so this avoids the need to have the same remote wiki data in more than one row of the interwiki table.
(2) Especially for other interwiki integration purposes besides interwiki transclusion, a primary key is a better unique identifier than a database name because there may be more than one wiki on the same wiki farm using the same database, and prefixing tables using $wgDBprefix. See http://www.mediawiki.org/wiki/Extension_talk:InterwikiIntegration#Wiki_identifier
Comment 4 Alexandre Emsenhuber [IAlex] 2010-06-16 18:44:46 UTC

*** This bug has been marked as a duplicate of bug 20646 ***

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


Navigation
Links