Log the context of the ULS in which no search results were found
Relies on updates to EventLogging schema. Diff: https://meta.wikimedia.org/w/index.php?title=Schema%3AUniversalLanguageSelector&type=revision&diff=17799034&oldid=7327441 Bug: T179402 Change-Id: I2ff9ce9b40df16ed3c5e6970fb3b691af08cedec
This commit is contained in:
@@ -237,13 +237,16 @@
|
||||
/**
|
||||
* Log search strings which produce no search results.
|
||||
*
|
||||
* @param {jQuery.event} event The orignal event
|
||||
* @param {jQuery.event} event The original event
|
||||
* @param {string} context The query string
|
||||
* @param {string} ulsPurpose The ulsPurpose option of the ULS panel that triggered the event
|
||||
*/
|
||||
noSearchResults: function ( event, context ) {
|
||||
noSearchResults: function ( event, context, ulsPurpose ) {
|
||||
this.log( {
|
||||
action: 'no-search-results',
|
||||
context: context
|
||||
context: context,
|
||||
ulsPurpose: ulsPurpose,
|
||||
title: mw.config.get( 'wgPageName' )
|
||||
} );
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user