Update VisualEditorFeatureUse with new fields

Bug: T252925
Change-Id: I02c41e6b5f42405b60dda87340787afd92b0da4b
This commit is contained in:
David Lynch 2020-06-08 12:13:01 -05:00
parent 4d396b5dc9
commit 648bffd3b9

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 );