mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Update VisualEditorFeatureUse with new fields
Bug: T252925 Change-Id: I02c41e6b5f42405b60dda87340787afd92b0da4b
This commit is contained in:
parent
4d396b5dc9
commit
648bffd3b9
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue