Description
Since the orchestrator code to support a new built-in function Fetch Wikidata entities now exists (it was written for T383644 and T383631), it would make sense to define the function for use on-wiki. Since it would allow fetching of multiple entities, of mixed types (lexemes, items, etc.), it would likely be a useful addition to the type-specific fetch functions that we have now (Fetch Wikidata lexeme, Fetch Wikidata item, etc.).
Whenever a user provides a composition implementation for a function that needs to fetch multiple Wikidata entities, they can get a performance benefit by fetching them using this function, instead of individual calls to our existing Wikidata fetch functions. One example use case would be when a call to Z6830/Find lexemes for a Wikidata item returns multiple lexeme references and they need to retrieve the referenced lexemes for comparison, to determine which one works best for a given NLG setting.
The existing fetch functions are Z6821/2/4/5/6; perhaps Z6820 would be a good ZID for this one.
- Define the function
- Define the built-in implementation
- Add (a few) lines of code to builtins.js
- Add tests
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- ...
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