Page MenuHomePhabricator

[statements-ui] correct item labels, links to items & properties on page load/reaload
Closed, ResolvedPublic

Description

Links to properties and items as well as displaying the proper label for items in the statements view is working only after adding new claims via the javascript UI without reloading the page. To make those work when the page gets loaded initially or after a reload this needs to be implemented in EntityView as well.


Version: unspecified
Severity: normal

Details

Reference
bz43263

Event Timeline

bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz43263.
bzimport added a subscriber: Unknown Object (MLST).

This requires additional information to be available initially in the JS UI. This is the info which is delivered via the wbUsedProperties variable currently. This should be renamed to wbUsedEntities and contain all required information.
So far this didn't contain the url information to the entity, this information should be added as well.

See
EntityView::registerJsConfigVars
and
EntityView::getBasicEntityInfo

Ie0675c6a solves this

Verified in Wikidata demo sprint 28

Restricted Application added a project: Wikidata. · View Herald TranscriptJan 28 2016, 6:08 PM
Restricted Application added a subscriber: StudiesWorld. · View Herald Transcript