HomePhabricator

Updated mediawiki/extensions Project: mediawiki/extensions/Wikibase…

Authored by jenkins-bot.

Description

Updated mediawiki/extensions Project: mediawiki/extensions/Wikibase 81bcfad335072f24bf140c1adc1ee52d98562f62

wbparsevalue should use datatype.

This introduces the new 'datatype' parameter to wbparsevalue, which allows
the parsing to be based on the input value's datatype, instead of directly
picking a parser by name using the 'parser' parameter.

This deprecated 'parser' in favor of 'datatype'. Old parser names remain usable
via the 'parser' parameter.

This change includes a complete rewrite of the unit test, to allow the DataTypeFactory
to be mocked.

Bug: T104876
Change-Id: I3207642e8a9f558618d96e980f5973d4351c5988

Event Timeline

Gerrit Code Review <gerrit@wikimedia.org> committed rMEXT2e7811ba195b: Updated mediawiki/extensions Project: mediawiki/extensions/Wikibase… (authored by jenkins-bot <jenkins-bot@gerrit.wikimedia.org>).Aug 4 2015, 11:07 AM