mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
New bucket for abtest data
Bug: T291308 Change-Id: I20fb26fe5e294f6c117038bcef6f5ba92b01340b
This commit is contained in:
parent
ad563c0222
commit
9707d5e686
|
@ -180,7 +180,6 @@
|
|||
if ( action === 'saveFailure' ) {
|
||||
event[ actionPrefix + '_message' ] = event.message;
|
||||
}
|
||||
/* eslint-enable camelcase */
|
||||
|
||||
// Remove renamed properties
|
||||
delete event.type;
|
||||
|
@ -194,9 +193,13 @@
|
|||
timing[ action ] = timeStamp;
|
||||
}
|
||||
|
||||
if ( mw.user.options.get( 'discussiontools-abtest' ) ) {
|
||||
event.bucket = mw.user.options.get( 'discussiontools-abtest' );
|
||||
if ( mw.config.get( 'wgDiscussionToolsABTestBucket' ) ) {
|
||||
data.bucket = mw.config.get( 'wgDiscussionToolsABTestBucket' );
|
||||
if ( mw.config.get( 'wgDiscussionToolsAnonymousUserId' ) ) {
|
||||
data.anonymous_user_id = mw.config.get( 'wgDiscussionToolsAnonymousUserId' );
|
||||
}
|
||||
}
|
||||
/* eslint-enable camelcase */
|
||||
|
||||
if ( trackdebug ) {
|
||||
log( topic, duration + 'ms', event );
|
||||
|
@ -251,11 +254,14 @@
|
|||
integration: ve.getProp( ve, 'init', 'target', 'constructor', 'static', 'integrationType' ) || 'page',
|
||||
platform: ve.getProp( ve, 'init', 'target', 'constructor', 'static', 'platformType' ) || 'other'
|
||||
};
|
||||
/* eslint-enable camelcase */
|
||||
|
||||
if ( mw.user.options.get( 'discussiontools-abtest' ) ) {
|
||||
event.bucket = mw.user.options.get( 'discussiontools-abtest' );
|
||||
if ( mw.config.get( 'wgDiscussionToolsABTestBucket' ) ) {
|
||||
data.bucket = mw.config.get( 'wgDiscussionToolsABTestBucket' );
|
||||
if ( mw.config.get( 'wgDiscussionToolsAnonymousUserId' ) ) {
|
||||
data.anonymous_user_id = mw.config.get( 'wgDiscussionToolsAnonymousUserId' );
|
||||
}
|
||||
}
|
||||
/* eslint-enable camelcase */
|
||||
|
||||
if ( trackdebug ) {
|
||||
log( topic, event );
|
||||
|
|
Loading…
Reference in a new issue