Page MenuHomePhabricator

Orchestrator JavaScript: Consider replacing fetchWikidataEntitiesFromLODAPI with fetchWikidataEntities
Open, LowPublic

Description

Description

After fetchWikidataEntities (which calls wbgetentities in the Wikidata action API) has proven to be useful, reliable, and performant in this context, consider replacing uses of fetchWikidataEntitiesFromLODAPI with uses of fetchWikidataEntities, in db.js. This will allow for removing fetchWikidataEntityFromLODAPI and several other functions.

fetchWikidataEntities is more versatile and allows for getting multiple entities in a single fetch.

LODAPI = Linked Open Data API; i.e. Special:EntityData as described in T368654.

Note, however, that a few simple curl tests, from deployment staging, indicates that fetchWikidataEntitiesFromLODAPI may be a little faster for retrieving a single entity.

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • ...

Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task


Completion checklist

Event Timeline

DMartin-WMF renamed this task from db.js: Consider replacing fetchWikidataEntitiesFromLODAPI with fetchWikidataEntities to Orchestrator JavaScript: Consider replacing fetchWikidataEntitiesFromLODAPI with fetchWikidataEntities.Feb 13 2025, 5:28 AM
DMartin-WMF updated the task description. (Show Details)