Last modified: 2014-08-03 18:49:48 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 T71077, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69077 - Database access to spam-blacklist log
Database access to spam-blacklist log
Status: RESOLVED WORKSFORME
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Marc A. Pelletier
http://de.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks: labs-replication merl-tools
  Show dependency treegraph
 
Reported: 2014-08-03 18:47 UTC by merl
Modified: 2014-08-03 18:49 UTC (History)
3 users (show)

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


Attachments

Description merl 2014-08-03 18:47:38 UTC
For extending one of my tool (bot), i would like to have access to log entries caused by local and global spam-blacklist blocking. On wikipedia these logs are visible to all local admins only. I am admin on dewiki, so i have read access to http://de.wikipedia.org/w/index.php?title=Spezial%3ALogbuch&type=spamblacklist.

I need this info to know which articles were affected by a block in the past. With this i can inform affected wikiproject about an ongoing whitelist discussion. Not any part of the log entry itself is reproducible from the created reports.

Spamblock log entries are currently hidden from logging table. In mediawiki the code for this log was added in https://gerrit.wikimedia.org/r/#/c/69303/8/SpamBlacklist_body.php

Is it possible for my tool to get access to this data on toollabs db?
Comment 1 Kunal Mehta (Legoktm) 2014-08-03 18:49:48 UTC
eMariaDB [enwiki_p]> select * from logging where log_type="spamblacklist" limit 2;
+----------+---------------+------------+----------------+----------+---------------+-------------+-------------+--------------------------------------------------------+-------------+---------------+----------+
| log_id   | log_type      | log_action | log_timestamp  | log_user | log_namespace | log_title   | log_comment | log_params                                             | log_deleted | log_user_text | log_page |
+----------+---------------+------------+----------------+----------+---------------+-------------+-------------+--------------------------------------------------------+-------------+---------------+----------+
| 51115134 | spamblacklist | hit        | 20130919184836 |   215845 |             0 | JD_Meatyard |             | a:1:{s:6:"4::url";s:27:"http://www.reverbnation.com";} |           0 | Runarb        | 40575851 |
| 51115150 | spamblacklist | hit        | 20130919184909 |   215845 |             0 | JD_Meatyard |             | a:1:{s:6:"4::url";s:27:"http://www.reverbnation.com";} |           0 | Runarb        | 40575851 |
+----------+---------------+------------+----------------+----------+---------------+-------------+-------------+--------------------------------------------------------+-------------+---------------+----------+
2 rows in set (0.03 sec)

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


Navigation
Links