disable automatic "on" state for experiments in development (#54520)
This commit is contained in:
@@ -99,8 +99,6 @@ export function getExperimentControlGroupFromSession(
|
||||
): string {
|
||||
if (controlGroupOverride[experimentKey]) {
|
||||
return controlGroupOverride[experimentKey]
|
||||
} else if (process.env.NODE_ENV === 'development') {
|
||||
return TREATMENT_VARIATION
|
||||
} else if (process.env.NODE_ENV === 'test') {
|
||||
return CONTROL_VARIATION
|
||||
}
|
||||
@@ -160,14 +158,6 @@ export function initializeExperiments(
|
||||
|
||||
const experiments = getActiveExperiments(locale, currentVersion)
|
||||
|
||||
if (experiments.length && process.env.NODE_ENV === 'development') {
|
||||
console.log(
|
||||
`In development, all users are placed in the "${TREATMENT_VARIATION}" group for experiments`,
|
||||
)
|
||||
} else if (experiments.length && process.env.NODE_ENV === 'test') {
|
||||
console.log(`In test, all users are placed in the "${CONTROL_VARIATION}" group for experiments`)
|
||||
}
|
||||
|
||||
let numberOfExperimentsUsingContext = 0
|
||||
for (const experiment of experiments) {
|
||||
if (experiment.includeVariationInContext) {
|
||||
|
||||
Reference in New Issue
Block a user