Description
The orchestrator would benefit from having code that retrieves Wikidata entities using the action API (action=wbgetentities), as discussed in T368654 .
Reasons:
- Our current use of Special:EntityData only supports one entity returned per call; for some use cases (including T383631) it will be desirable to fetch multiple entities at once.
- wbgetentities will support the optimization parameters envisioned by T382921.
- In fetching items, the props parameter of wbgetentities can be used for optimization purposes.
The relevant code (and location for new code) is in db.js.
See T368654 for some discussion of the characteristics of these two APIs.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- The response time from Wikidata should be no greater then it is currently (except marginally to allow for returning multiple items).
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist