Skip to content

Commit 4b00ac4

Browse files
authored
disable automatic "on" state for experiments in development (#54520)
1 parent 3ec400b commit 4b00ac4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/events/components/experiments/experiment.ts

-10
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ export function getExperimentControlGroupFromSession(
9999
): string {
100100
if (controlGroupOverride[experimentKey]) {
101101
return controlGroupOverride[experimentKey]
102-
} else if (process.env.NODE_ENV === 'development') {
103-
return TREATMENT_VARIATION
104102
} else if (process.env.NODE_ENV === 'test') {
105103
return CONTROL_VARIATION
106104
}
@@ -160,14 +158,6 @@ export function initializeExperiments(
160158

161159
const experiments = getActiveExperiments(locale, currentVersion)
162160

163-
if (experiments.length && process.env.NODE_ENV === 'development') {
164-
console.log(
165-
`In development, all users are placed in the "${TREATMENT_VARIATION}" group for experiments`,
166-
)
167-
} else if (experiments.length && process.env.NODE_ENV === 'test') {
168-
console.log(`In test, all users are placed in the "${CONTROL_VARIATION}" group for experiments`)
169-
}
170-
171161
let numberOfExperimentsUsingContext = 0
172162
for (const experiment of experiments) {
173163
if (experiment.includeVariationInContext) {

0 commit comments

Comments
 (0)