mediawiki-extensions-Popups/resources/ext.popups.schemaPopups.js
Jdlrobson eff7dc95e6 Revert "Add properties that will be logged with each EL request"
Breaks EventLogging as the old schema is not compatible with these
new properties. We will reapply the patch later when in a better state.
My bad for merging.

This reverts commit ca20031a0e.

Change-Id: Ia961e0f99339f9045af9d0a4653599a48518cc95
2016-05-18 18:47:16 +00:00

16 lines
388 B
JavaScript

( function ( $, mw ) {
/**
* Log the popup event as defined in the schema
*
* https://meta.wikimedia.org/wiki/Schema:Popups
*/
var schemaPopups = new mw.eventLog.Schema(
'Popups',
mw.config.get( 'wgPopupsSchemaPopupsSamplingRate', 0 )
);
mw.trackSubscribe( 'ext.popups.schemaPopups', function ( topic, data ) {
schemaPopups.log( data );
} );
} )( jQuery, mediaWiki );