Merge "Update VisualEditorFeatureUse with new fields"

This commit is contained in:
jenkins-bot 2020-06-10 19:53:49 +00:00 committed by Gerrit Code Review
commit bfdd39ed79

View file

@ -236,11 +236,18 @@
return;
}
/* eslint-disable camelcase */
event = {
feature: feature,
action: data.action,
editingSessionId: editingSessionId
editingSessionId: editingSessionId,
user_id: mw.user.getId(),
user_editcount: mw.config.get( 'wgUserEditCount', 0 ),
editor_interface: ve.getProp( ve, 'init', 'target', 'surface', 'mode' ) === 'source' ? 'wikitext-2017' : 'visualeditor',
integration: ve.getProp( ve, 'init', 'target', 'constructor', 'static', 'integrationType' ) || 'page',
platform: ve.getProp( ve, 'init', 'target', 'constructor', 'static', 'platformType' ) || 'other'
};
/* eslint-enable camelcase */
if ( trackdebug ) {
log( topic, event );