Page MenuHomePhabricator

Deprecate site methods which could be replaced by logevents
Closed, ResolvedPublic

Description

There are some methods which are calling logevents by only setting logtype but on the other hand only return a small set of information restricted by a tuple or list. methods should not return tuples/lists/dicts if they could return a LogEntry instance.

See: https://gerrit.wikimedia.org/r/#/c/231859/1/pywikibot/site.py@5467

Event Timeline

Xqt triaged this task as Low priority.Jun 19 2017, 8:38 PM

Change 360090 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] deprecate site.newfiles() method

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

Change 360090 merged by jenkins-bot:
[pywikibot/core@master] deprecate site.newfiles() method

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

Change 751944 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [cleanup] Remove APISite.newfiles method, deprecated for 5 years

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

Change 751944 merged by jenkins-bot:

[pywikibot/core@master] [cleanup] Remove APISite.newfiles method, deprecated for 5 years

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