Last modified: 2013-04-22 16:15:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45096, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43096 - Querying suppression events (letype=suppress) through API returns an empty list
Querying suppression events (letype=suppress) through API returns an empty list
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-13 22:55 UTC by orlodrim
Modified: 2013-04-22 16:15 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description orlodrim 2012-12-13 22:55:33 UTC
When log events are retrieved through the API, suppression events are filtered out, even for users in the oversight group. In particular, mywiki/api.php?action=query&list=logevents&letype=suppress always returns an empty list.

I think the issue comes from the following function call in includes/api/ApiQueryLogEvents.php, line 61:
$hideLogs = LogEventsList::getExcludeClause( $db );
Changing it to getExcludeClause( $db, 'user' ) should fix it.
Comment 1 Alex Monk 2012-12-16 13:30:04 UTC
Certainly seems so. Gerrit change #38907
Comment 2 orlodrim 2012-12-16 17:33:20 UTC
Thanks Krenair for your work on this bug and bug 43137!
Comment 3 Alex Monk 2012-12-16 21:44:46 UTC
I didn't really do anything here except test, commit, and upload your fix. :P
Comment 4 Brad Jorsch 2012-12-17 20:18:13 UTC
Fix merged.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links