Prevent A/B test enrollment hook from firing for unsampled
Bug: T297662
Change-Id: Ibeca32a3c0fab7de403d69ea274c653cf4bd6c0e
(cherry picked from commit 60553ff324
)
This commit is contained in:
parent
a19bc4ce4a
commit
62e84e7467
|
@ -101,7 +101,7 @@ function isInTestGroup( bucket, targetGroup ) {
|
|||
function initAB( bucket ) {
|
||||
// Send data to WikimediaEvents to log A/B test initialization if experiment is enabled
|
||||
// and if the user is logged in.
|
||||
if ( ABTestConfig.enabled && !mw.user.isAnon() ) {
|
||||
if ( ABTestConfig.enabled && !mw.user.isAnon() && bucket !== 'unsampled' ) {
|
||||
// @ts-ignore
|
||||
mw.hook( 'mediawiki.web_AB_test_enrollment' ).fire( getABTestGroupExperimentName() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue