Xqt created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.
TASK DESCRIPTION
User.isRegistered() may give a wrong result in some case:
>>> import pwb, pywikibot as py
>>> u = py.User(py.Site('de', 'wikipedia'), u'Ulfb')
>>> u
User(Benutzer:Ulfb)
>>> u.isRegistered()
False
>>>
Indeed there is no creation time [1] and his first contribs are made in 2004
[2]
The problem was found by this [3] test.
This looks like a regession of
https://phabricator.wikimedia.org/rPWBC050e83e3add3e819e6ca44953b9bac3a791eb530
where a registration time is expected but the result of registration is None.
`u.getgroups()` gives `{u'editcount': 508, u'userid': 10590, u'name':
u'Ulfb', u'groups': [u'autoreview', u'editor', u'*', u'user',
u'autoconfirmed'], u'registration': None}
`
This indicates a registration but the timestamp is unknown.
[1] https://de.wikipedia.org/w/index.php?title=Spezial:Benutzer/Ulfb&limit=1
[2]
https://de.wikipedia.org/w/index.php?title=Spezial:Beitr%C3%A4ge/Ulfb&dir=prev&target=Ulfb
[3] https://integration.wikimedia.org/ci/job/tox-jessie/8100/console
TASK DETAIL
https://phabricator.wikimedia.org/T135828
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: jayvdb, Aklapper, Zppix, Mpaa, Xqt, pywikibot-bugs-list, Mdupont
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs