Page MenuHomePhabricator

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

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 created this task.May 23 2015, 2:31 PM
daniel raised the priority of this task from to Needs Triage.
daniel updated the task description. (Show Details)
daniel added a project: Wikidata.
daniel added a subscriber: daniel.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 23 2015, 2:31 PM
daniel triaged this task as Low priority.Sep 10 2015, 11:59 AM
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 Normal 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.
hoo moved this task from Incoming to To do later on the Wikibase-Lua board.Apr 12 2018, 1:58 PM