Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/2 Fixes/17563.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure all users use new discovery code regardless of their experiment settings.
10 changes: 5 additions & 5 deletions src/client/common/experiments/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ export class ExperimentService implements IExperimentService {
}

public inExperimentSync(experiment: string): boolean {
if (experiment === DiscoveryVariants.discoveryWithoutFileWatching) {
// Enable discovery experiment for all users.
return true;
}

if (!this.experimentationService) {
return false;
}
Expand All @@ -127,11 +132,6 @@ export class ExperimentService implements IExperimentService {
return true;
}

if (experiment === DiscoveryVariants.discoveryWithoutFileWatching) {
// Enable discovery experiment for all users.
return true;
}

// If getTreatmentVariable returns undefined,
// it means that the value for this experiment was not found on the server.
const treatmentVariable = this.experimentationService.getTreatmentVariable(EXP_CONFIG_ID, experiment);
Expand Down