Skip to content

Commit

Permalink
feat(flag): experiment feature flag
Browse files Browse the repository at this point in the history
Sometimes you just wanna turn this thing off from config because third
party services be third party servicin.
  • Loading branch information
jefflembeck committed Jul 17, 2023
1 parent 191e36a commit 71e3e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/experiments.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function observationHTML($parts)
}

// experiments are enabled for the following criteria
$experimentEnabled = $experiments_paid || ( in_array($expNum, $allowedFreeExperimentIds));
$experimentEnabled = !Util::getSetting('experiments_disabled') && ($experiments_paid || ( in_array($expNum, $allowedFreeExperimentIds)));
// exception allowed for tests on the metric times
if (strpos($test['testinfo']['url'], 'webpagetest.org/themetrictimes')) {
$experimentEnabled = true;
Expand Down

0 comments on commit 71e3e4e

Please sign in to comment.