Page MenuHomePhabricator

🍰 Simplify the value format in deserializers
Open, Needs TriagePublic

Description

  • if the DataValue type is wikibase-entityid:
    • use the EntityIdParser (that's already passed into PropertyValuePairDeserializer) to create an EntityId
    • create a new EntityIdValue from the EntityId
    • create the PropertyValueSnak from the property id and the EntityIdValue
    • return the PropertyValueSnak

Event Timeline

Ollie.Shotton_WMDE renamed this task from 🍰 Simplify the value format in PropertyValuePairDeserializer to 🍰 Simplify the value format in deserializers.Wed, Nov 23, 2:45 PM

Change 860060 had a related patch set uploaded (by Ollie Shotton; author: Ollie Shotton):

[mediawiki/extensions/Wikibase@master] REST: Simplify the value format in deserializers

https://gerrit.wikimedia.org/r/860060

Change 860060 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Simplify the value format in deserializers

https://gerrit.wikimedia.org/r/860060