Skip to content

Commit 6bcaada

Browse files
author
Kartik Raj
authored
Ensure all users use new discovery code regardless of their experiment settings (#17563)
* Ensure all users use new discovery code regardless of their experiment settings * News entry
1 parent e77f450 commit 6bcaada

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

news/2 Fixes/17563.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure all users use new discovery code regardless of their experiment settings.

src/client/common/experiments/service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ export class ExperimentService implements IExperimentService {
109109
}
110110

111111
public inExperimentSync(experiment: string): boolean {
112+
if (experiment === DiscoveryVariants.discoveryWithoutFileWatching) {
113+
// Enable discovery experiment for all users.
114+
return true;
115+
}
116+
112117
if (!this.experimentationService) {
113118
return false;
114119
}
@@ -127,11 +132,6 @@ export class ExperimentService implements IExperimentService {
127132
return true;
128133
}
129134

130-
if (experiment === DiscoveryVariants.discoveryWithoutFileWatching) {
131-
// Enable discovery experiment for all users.
132-
return true;
133-
}
134-
135135
// If getTreatmentVariable returns undefined,
136136
// it means that the value for this experiment was not found on the server.
137137
const treatmentVariable = this.experimentationService.getTreatmentVariable(EXP_CONFIG_ID, experiment);

0 commit comments

Comments
 (0)