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 created this task.Sep 2 2015, 1:11 PM
aude raised the priority of this task from to Medium.
aude updated the task description. (Show Details)
aude added projects: Wikidata, Wikidata-Gadgets.
aude added a subscriber: aude.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 2 2015, 1:11 PM
aude set Security to None.
aude added a comment.Sep 2 2015, 1:19 PM

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 closed this task as Declined.Sep 3 2015, 12:27 PM
Lydia_Pintscher claimed this task.
Lydia_Pintscher added a subscriber: Lydia_Pintscher.

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