Page MenuHomePhabricator

Avoid API call in AuthorityControl gadget (getProperties)
Closed, DeclinedPublic

Description

Doing an api call when authority control loads (on page views) for getting properties is probably not very good performance-wise.

It would be nice if the list of properties could be maybe be available as it's own resource loader module, which gets cached, or some other solution.

(maybe just go back to maintaining this as json, stored on some page in the MediaWiki ns. This could be maintained by bot. such page would get cached in the same way as other resource loader stuff)

ultimately, wikibase should support the functionality of authority control, adding the links server-side during rendering.

Related Objects

StatusSubtypeAssignedTask
DeclinedLydia_Pintscher
ResolvedBene
ResolvedBene
Resolvedhoo
ResolvedTobi_WMDE_SW
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolvedaude
Resolveddaniel
Resolveddaniel
ResolvedTobi_WMDE_SW
Resolvedhoo
ResolvedBene
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
ResolvedBene
ResolvedBene
ResolvedBene
Resolvedadrianheine

Event Timeline

aude raised the priority of this task from to Medium.
aude updated the task description. (Show Details)
aude added projects: Wikidata, Wikidata-Gadgets.
aude subscribed.

On Obama's item, I only see up to "LCAuth identifier" linked.

I suspect the api call runs into a limit for how many results are returned, resulting in only some stuff linked towards the top of the page.

Lydia_Pintscher claimed this task.
Lydia_Pintscher subscribed.

I think we should invest the time in getting the functionality into Wikibase as Bene is doing now.