Page MenuHomePhabricator

wbGeoShape.fromWikibase() and WbTabularData.fromWikibase() broken
Closed, ResolvedPublic

Description

Missed this in code review. In https://phabricator.wikimedia.org/rPWBCee30a681c2b6d389bdbfc01933b73ac052590b55 the _WbDataPage was introduced. def fromWikibase(cls, page_name, site, data_site) is just wrong, this should be def fromWikibase(cls, json, site) . @Lokal_Profil I think the init and fromWikibase got mixed up?

Event Timeline

Xqt triaged this task as High priority.May 26 2017, 4:00 PM

Change 355812 had a related patch set uploaded (by Multichill; owner: Multichill):
[pywikibot/core@master] Unbreak wbGeoShape and WbTabularData

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

Change 355812 merged by jenkins-bot:
[pywikibot/core@master] Unbreak wbGeoShape and WbTabularData

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

I'm not sure the logic is right in the unbreak patch site should always be automatically provided when loading data fromWikibase.

I'll take a closer look at this and what went wrong with the original patch.

Change 355908 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[pywikibot/core@master] Clean up issue with _WbDataPage

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

Change 355908 merged by jenkins-bot:
[pywikibot/core@master] Clean up issue with _WbDataPage

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

Fixed. @Multichill thanks for the emergency fix. Your assumption was also correct in that data_site had gotten accidentally copied in from __init__.