Page MenuHomePhabricator

Replace use of fetch() in WikiLambda code with proper mw.api calls
Closed, ResolvedPublic

Description

It's a bit surprising these even work without origin parameter and centralauthtoken!

  • searchWikidataEntities
  • fetchWikidataEntities

Event Timeline

Change #1269027 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] Use mw.ForeignApi for Wikidata Action API calls

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

Change #1269027 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Use mw.ForeignApi for Wikidata Action API calls

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

Change #1269423 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] fetchWikidataEntities and searchWikidataEntities return should return an actual Promise

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

Change #1269423 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] fetchWikidataEntities and searchWikidataEntities return should return an actual Promise

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