Page MenuHomePhabricator

Deduplicate Fetching Logic in src/db.js
Open, HighPublic

Description

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