HomePhabricator

Split getting a property's datatype into its own request so it can be cached.

Tags
None
Referenced Files
None
Subscribers
None

Description

Split getting a property's datatype into its own request so it can be cached.

Since a property's datatype will never change, we can safely cache it "forever".
I also fixed it so that we don't guess the datatype based on what was returned in
a "datavalue" object, since that is unreliable.

https://mediawiki.org/wiki/Special:Code/pywikipedia/11309

Details

Provenance
LegoktmAuthored on
Parents
rPWBCbc5bf53948c8: PEP8 changes, update from trunk r11300, r11301, r11305, r10028
Branches
Unknown
Tags
Unknown
ChangeId
None

Event Timeline