Huji added a project: MediaWiki-API. Huji added a comment.
In T297238#7556908 <https://phabricator.wikimedia.org/T297238#7556908>, @Ladsgroup wrote: > Three reasons I can think of: > > - Loading an item is heavy and requires a lot of network bandwith inside the dc. Plus it would put a lot of pressure on memcached and databases. See this as a cache layer > - Client wikis need to override those entries (sometimes) with `[[en:Foo]]` Wouldn't all those apply to the Web version too? But the Web version correctly shows the interwiki links based on Wikidata. If the web version can do it efficiently, why wouldn't the API do the same? More explicitly stated: when I go to https://en.wikipedia.org/wiki/Category:Companies_based_in_Edmonton I see an interwiki to fa page "رده:شرکتهای ادمنتن" (which is compatible with Wikidata), but when I go to https://en.wikipedia.org/w/api.php?action=query&prop=langlinks&titles=Category:Companies%20based%20in%20Edmonton&redirects= I get the old fa interwiki as described above. Is there a reason that API returns a different response than the Web version. Is it even good practice? > - it allows more complex querying in labs, e.g. articles that have a lot of interwiki links but not in language foo. This one is not relevant to the question about API. I am not proposing that we should do away with the `langlinks` table in MediaWiki altogether. I am saying the Web and the API version of MediaWiki should use the same source of data (both Wikidata). TASK DETAIL https://phabricator.wikimedia.org/T297238 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji Cc: Ladsgroup, Xqt, Aklapper, Huji, pywikibot-bugs-list, Invadibot, maantietaja, Akuckartz, WDoranWMF, DannyS712, Nandana, Amorymeltzer, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Sethakill, dg711, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, jayvdb, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org