Last modified: 2013-04-22 16:14:29 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 T36946, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34946 - Getting parameter "afl_user" available for log events
Getting parameter "afl_user" available for log events
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-04 07:18 UTC by billinghurst
Modified: 2013-04-22 16:14 UTC (History)
4 users (show)

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


Attachments

Description billinghurst 2012-03-04 07:18:01 UTC
In looking to customise [[MediaWiki:Abusefilter-log-detailedentry-meta]] I find that the $2 variable is {username (talk|block)} and there is no ability to drill down to utilise the username only for other feeds.


It comes from 

https://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/AbuseFilter/special/SpecialAbuseLog.php?revision=111217&view=markup

483 	$description = wfMsgExt( 'abusefilter-log-detailedentry-meta',
484 	array( 'parseinline', 'replaceafter' ),
485 	array(
486 	$timestamp,
487 	$userLink,
488 	$filterLink,
489 	$row->afl_action,
490 	$pageLink,
491 	$actions_taken,
492 	$parsed_comments,
493 	$lang->pipeList( $actionLinks ),

...

404 	if ( !$row->afl_wiki ) {
405 	// Local user
406 	$userLink = $sk->userLink( $row->afl_user, $row->afl_user_text ) .
407 	$sk->userToolLinks( $row->afl_user, $row->afl_user_text );
408 	} else {


So is it somehow possible to get "afl_user" as an available parameter to be used for reporting?  I see that it is available from the API, could we look to make it available for the log

(thanks MZM for the help)
Comment 1 Kunal Mehta (Legoktm) 2012-12-14 14:11:49 UTC
It would be rather easy to add a $9 which just gave you the raw username, however that seems rather hackish.

Since most of the other links use the userToolLinks and userLink functions, is there a specific user-link you're looking for? Or is it just the ability to manipulate the username however you want?
Comment 2 billinghurst 2012-12-16 08:55:55 UTC
It is a little while since that time.  From memory what I was wanting to do was to append some query/lookup tools based on username, so probably the latter argument. Thanks.
Comment 3 Kunal Mehta (Legoktm) 2012-12-16 10:09:29 UTC
A bit hackish, but Gerrit change #38903
Comment 4 Marius Hoch 2012-12-18 19:23:56 UTC
Change merged

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


Navigation
Links