Description
The dereferenceZObjects and retrieveWikidataEntity functions should converge into a single fetching function. This way, improvements to one (like caching and pre-caching) will automatically be extended to both wikilambda_fetch and wikidata calls.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- create separate cache and pre-cache for Wikidata items
- collapse dereferenceZObjects and retrieveWikidataEntity logic into a single underlying function to share fetching, caching, and pre-caching logic
Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task
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