Page MenuHomePhabricator

[Task] Guarantee order of Statements in JSON (and Lua)
Open, MediumPublic

Description

Currently, the order of Statements in the JSON representation is undefined. We should guarantee that this order is stable (i.e. the first statement remains the first if the list isn't explicitly edited). The order could either be explicit in the JSON (see T98861), or be determined based on the Statement GUID.

This allows clients that want a single value, and is ok with disregarding any additional values, to simply use the first entry in the list.

Event Timeline

daniel raised the priority of this task from to Needs Triage.
daniel updated the task description. (Show Details)
daniel added a project: Wikidata.
daniel subscribed.
daniel raised the priority of this task from Low to Needs Triage.
daniel moved this task from incoming to needs discussion or investigation on the Wikidata board.
daniel triaged this task as Medium priority.Sep 10 2015, 3:03 PM
Jonas renamed this task from Guarantee order of Statements in JSON (and Lua) to [Task] Guarantee order of Statements in JSON (and Lua).Nov 2 2015, 3:14 PM
Jonas set Security to None.
Michael subscribed.

Changes to Lua would only be downstream from such a decision being made for Wikidata/Wikibase core. (See also T125493)