Page MenuHomePhabricator

Implement WbUnknown to handle new (unknown) Wikibase data types
Closed, ResolvedPublic

Description

Every once in a while Pywikibot breaks when a new data type gets introduced. Overview of current datatypes at https://www.wikidata.org/wiki/Special:ListDatatypes (our list at https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/__init__.py;2d9e841f08ef564ce644c7ffd1dd1341fa09a511$228). Introduce a WbUnknown type subclassed to WbRepresentation ( https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/_wbtypes.py ) to fall back to. It should just store the json as a blob of data and be able to return that without messing it up

Event Timeline

Multichill triaged this task as Medium priority.

Change 354968 had a related patch set uploaded (by Multichill; owner: Multichill):
[pywikibot/core@master] Introduce the new WbUnknown data type for Wikibase This can be used later to store claims with an unknown data type.

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

Change 354968 merged by jenkins-bot:
[pywikibot/core@master] Introduce the new WbUnknown data type for Wikibase

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