Page MenuHomePhabricator

Implement a PrefetchingTermLookup for federated properties
Closed, ResolvedPublic

Description

A PrefetchingTermLookup is needed to provide labels for formatting statements in the entity view.
This ticket is mainly about creating the service, and it will be wired up seperately.

This should:

  • Only work for labels.
  • descriptions and aliases should throw some kind of exception ( maybe a BadMethodCallException )
  • Prefetch terms using batched calls to wbgetentities
    • max entities that can be requested in one call should be assumed to be 50 for now
    • Do not fetch more than is needed (only fetch labels, not statements and descriptions etc)

Event Timeline

Addshore created this task.Apr 9 2020, 8:26 AM

Change 591908 had a related patch set uploaded (by Silvan Heintze; owner: Silvan Heintze):
[mediawiki/extensions/Wikibase@master] FP: Add ApiPrefetchingTermLookup

https://gerrit.wikimedia.org/r/591908

Change 591908 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] FP: Add ApiPrefetchingTermLookup

https://gerrit.wikimedia.org/r/591908

Samantha_Alipio_WMDE closed this task as Resolved.May 4 2020, 2:07 PM