LucasWerkmeister created this task.
LucasWerkmeister added projects: Wikidata, Wikibase-JavaScript-Api, 
Lexicographical data, WikibaseMediaInfo, Machine vision.

TASK DESCRIPTION
  Wikibase has a `getLocationAgnosticMwApi` function (in 
wikibase/javascript-api 
<https://gerrit.wikimedia.org/r/plugins/gitiles/wikibase/javascript-api/+/3.1.0/src/getLocationAgnosticMwApi.js>)
 which returns an instance of either `mw.Api` or `mw.ForeignApi`, depending on 
whether the target URL matches the current host or not. I think this is no 
longer necessary: since we resolved T208601 
<https://phabricator.wikimedia.org/T208601>, it should be fine to simply use 
`ForeignApi` unconditionally. We should migrate callers 
<https://codesearch.wmflabs.org/search/?q=getLocationAgnosticMwApi> to that 
simpler pattern and then get rid of this method.
  
  Callers to be updated:
  
  - Wikibase
  - WikibaseLexeme
  - WikibaseMediaInfo
  - MachineVision

TASK DETAIL
  https://phabricator.wikimedia.org/T239518

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: LucasWerkmeister
Cc: LucasWerkmeister, darthmon_wmde, DannyS712, Nandana, Mringgaard, Lahi, 
Gq86, Ramsey-WMF, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, Ricordisamoa, Jdforrester-WMF, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to