Page MenuHomePhabricator

[Task] DataModelSerialization: option to force maps to lists, if needed
Closed, InvalidPublic

Description

For some output formats (in particular, XML as generated by ApiFormat), ID-based maps are problematic, and should be replaced by plain lists (with a tag name meta-marker set, see T78652).

NOTE: Before implementing this, first investigate whether this is still needed with the overhauled ApiResult class. Perhaps just having the meta-marker set is sufficient.

Event Timeline

daniel raised the priority of this task from to High.
daniel updated the task description. (Show Details)
JanZerebecki lowered the priority of this task from High to Medium.May 16 2015, 5:19 PM
JanZerebecki set Security to None.

This blocks "WikibaseDataModelSerialization with what we do with WikibaseLib" and although we have totally removed the Lib Serialization I would not consider this task complete in regards to WikibaseDataModelSerialization..

Still looking into potentially 1 change in core for our use case to remove keys and shove them somewhere else in an element.
Then after a breaking change to our XML output (as they are different anyway) we could probably use the same serialization for all formats...

Jonas renamed this task from DataModelSerialization: option to force maps to lists, if needed to [Task] DataModelSerialization: option to force maps to lists, if needed.Aug 15 2015, 12:17 PM