Last modified: 2014-09-17 21:43:48 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 T48992, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46992 - Fill the iw_api column of the interwiki table
Fill the iw_api column of the interwiki table
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Alex Monk
:
Depends on:
Blocks: 70504
  Show dependency treegraph
 
Reported: 2013-04-07 18:51 UTC by Adam Wight
Modified: 2014-09-17 21:43 UTC (History)
6 users (show)

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


Attachments

Description Adam Wight 2013-04-07 18:51:53 UTC
maintenance/interwiki.sql does not contain data for the iw_api column.  Therefore, Interwiki::getAPI will always return null.  I could write a script which populates the api endpoint data using the "EditURI" "really simple discovery" data, if we plan to implement the api column.

Since we still have a blank slate here, it might be more useful to store the script URL prefix, for example "http://de.wikibooks.org/w/", at least until there is an API to retrieve the other endpoints through queries to api.php.
Comment 1 Bartosz Dziewoński 2013-04-07 19:13:37 UTC
(Previous discussion was on change I89668fca.)
Comment 2 Daniel Friesen 2013-04-07 19:14:17 UTC
The column already has a defined purpose. Whether or not it's filled out by default or entries on WMF. -1 To changing the purpose.

There's also this RFC to think about. As the mid/long-term plan is to eventually replace interwiki completely:
https://www.mediawiki.org/wiki/Requests_for_comment/New_sites_system
Comment 3 Tyler Romeo 2013-04-08 18:13:49 UTC
Agreed with Daniel. Can't we just implement the column with its defined purpose? What would need to be done for this?
Comment 4 Adam Wight 2013-04-08 22:46:43 UTC
To finish implementing ::getAPI, we just have to populate the iw_api column and add the data to maintenance/interwiki.sql.  I'll go ahead and write a script to do that!

I'm definitely not suggesting we reuse the iw_api column and fill it with incorrect stuff :p, so I'm tabling the second idea I brought up in order to reduce confusion.
Comment 5 This, that and the other (TTO) 2013-12-24 11:35:27 UTC
interwiki.sql/list needs to be overhauled, see bug 58369 and others.

This seems like a MediaWiki issue, so I'm moving it accordingly. Fixing this on the WMF cluster would be a separate bug, requiring modification of the format of [[m:Interwiki map]] among other things.
Comment 6 Gerrit Notification Bot 2014-09-17 19:55:47 UTC
Change 161034 had a related patch set uploaded by Alex Monk:
Fill the iw_api column of the interwiki table when installing

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

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


Navigation
Links