Page MenuHomePhabricator

Bots need to be adapted to new BaseBot abstraction
Closed, ResolvedPublic

Description

The new code includes assertion that all items returned by the generator (and filtered by the method) are Page's. However, Pywikibot's Wikidata objects are subclasses of WikibasePage (and consequently BasePage which is a superclass of Page). This makes use of various Wikidata-related pagegenerators impossible (unless you override BaseBot's methods).

Event Timeline

Xqt triaged this task as High priority.

Change 440336 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] assert for BasePage instead of Page in BaseBot.run

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

Change 440336 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] assert for BasePage instead of Page in BaseBot.run

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

Vvjjkkii renamed this task from Bots need to be adapted to new BaseBot abstraction to 10aaaaaaaa.Jul 1 2018, 1:04 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed Xqt as the assignee of this task.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.