From 1a42383cdd6255264100c9670e044d8aeeca27f6 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Mon, 20 Apr 2015 18:16:41 -0700 Subject: [PATCH] [TEMPORARY] Re-point A/B testing preference for test Instead of writing to the visualeditor-enable preference (which is user-facing), write to the visualeditor-testabpreference one (which is made up and won't impact anything), so that we can test that the A/B bucketing code works as expected. This patch will be reverted once bucketing is confirmed to be working. Change-Id: Ia738146c5bf68795bf812d64847ba74498888cd5 --- VisualEditor.hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php index cb79fbe98a..37c0793eca 100644 --- a/VisualEditor.hooks.php +++ b/VisualEditor.hooks.php @@ -665,7 +665,7 @@ class VisualEditorHooks { $user->isLoggedin() && ( ( $user->getId() % 2 ) === 0 ) ) { - $user->setOption( 'visualeditor-enable', 1 ); + $user->setOption( 'visualeditor-testabpreference', 1 ); $user->saveSettings(); } return true;