jayvdb created this task.
jayvdb added subscribers: jayvdb, Legoktm.
jayvdb added projects: pywikibot-core, Pywikibot-Wikidata.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Pywikibot will completely break whenever {T95686} is used, as it caches the 
property datatype 
[[https://github.com/wikimedia/pywikibot-core/blob/85626e/pywikibot/site.py#L6579
 | for one year]], and has done that since April 2013 {6ea6d333}.
  
  The simple workaround, e.g. for people using old versions of pywikibot, is to 
delete the apicache each time a property datatype changes, but that isnt a 
user-friendly solution.
  
  Changes that could mean Pywikibot is less impacted by this:
  
  Pywikibot could force a cache refresh more regularly.
  
  Ideally we detect that a property has a new datatype, and clear the relevant 
cache entry.
  
  Also, Pywikibot can eliminate the reliance on `getPropertyType`, as many code 
paths already have the properties datatype from when the entity was loaded, 
e.g. via `wbgetentities`.  If `getPropertyType` is only used infrequently, the 
caching can be eliminated.

TASK DETAIL
  https://phabricator.wikimedia.org/T115679

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Legoktm, Aklapper, jayvdb, pywikibot-bugs-list, Ricordisamoa



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to