jayvdb added a comment. On cache invalidation, we can force a refresh of the `getPropertyType` property-datatype mapping whenever a new datatype is encountered. What would be nice is if Wikibase provided an API call to list all datatypes, so we can detect when the list of datatypes changes. i.e. expose https://test.wikidata.org/wiki/Special:ListDatatypes via the API. However we dont __need__ that, as we can get the list of datatypes from the paraminfo of `wbformatvalue`.`datatype`. However we need to be mindful of https://phabricator.wikimedia.org/T55265, if that problem hasnt been fixed yet.
The harder, and much lower exposed problem, is if `pywikibot` users are using `CachedRequest` for entities, as the cached serialisation will have the old datatype in it, not the new datatype. IMO this problem is the callers responsibility, and our solution should be "delete your apicache". TASK DETAIL https://phabricator.wikimedia.org/T115679 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Ricordisamoa, hoo, Lydia_Pintscher, Multichill, Legoktm, Aklapper, jayvdb, pywikibot-bugs-list, Wikidata-bugs, aude _______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs