Page MenuHomePhabricator

Add a User method to find the last activity Timestamp
Closed, ResolvedPublicFeature

Description

Add a pywikibot.User method to find the last activity:

e.g.

def last_activity(self) -> pywikibot.Timestamp:

or

def inactive(self, days: int) -> bool:

and find the last activitity using

  • User.last_edit
  • User.deleted_contributions()
  • User.logevents
  • refer abuselog (API:Abuselog) there is no implementation yet

Use case(s):
Find inactive IP users to cleanup discussion pages, tag inactive templates to user/user talk pages etc.

Benefits:
Find inactive users for a given time delta

Event Timeline

Change #1228309 had a related patch set uploaded (by Louperivois; author: Louperivois):

[pywikibot/core@master] Implement site generator for AbuseLog and User.last_activity method

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

Change #1228309 merged by jenkins-bot:

[pywikibot/core@master] Implement site generator for AbuseLog and User.last_activity method

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