https://bugzilla.wikimedia.org/show_bug.cgi?id=64505
Bug ID: 64505
Summary: list=allursers auactiveusers recenteditcount value is
multiplied by the number of groups
Product: MediaWiki
Version: 1.24-git
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Web browser: ---
Mobile Platform: ---
Consider the following queries:
*
http://test2.wikipedia.org/w/api.php?action=query&list=allusers&augroup=reviewer&aufrom=Selenium_user&aulimit=1&auactiveusers=1
*
http://test2.wikipedia.org/w/api.php?action=query&list=allusers&augroup=reviewer|editor&aufrom=Selenium_user&aulimit=1&auactiveusers=1
*
http://test2.wikipedia.org/w/api.php?action=query&list=allusers&augroup=reviewer|editor|qa_automation&aufrom=Selenium_user&aulimit=1&auactiveusers=1
As you can see the value of recenteditcount is x in the first query, 2x in the
second query and 3x in the third query. My guess is that the first one returns
the correct value, while the other two multiply it by the number of queried
(with augroup) groups that Selenium_user belongs to.
Now consider the following query:
*
http://test2.wikipedia.org/w/api.php?action=query&list=allusers&auprop=groups&aufrom=Selenium_user&aulimit=1&auactiveusers=1
The value of recenteditcount is now 4x, which I guess is the number of the
groups that augroup could accept and that Selenium_user belongs to. The fact
that augroup is used or not doesn't influence the result in this case.
I think the value of recenteditcount should be x in all the above queries.
(Not relevant, but this bug was originally discovered in
https://github.com/kynikos/wiki-monkey/issues/174#issuecomment-41472026 )
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l