Skip to content

Commit 47c0107

Browse files
authored
Merge pull request #3160 from catchpoint/no_repeat_for_exp
force fvonly for exp
2 parents 1724917 + 451c2a0 commit 47c0107

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

www/experiments.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ function observationHTML($parts)
435435
}
436436

437437
$numRuns = $test['test']['runs'];
438-
$fvonly = $test['testinfo']['fvonly'];
438+
// $fvonly = $test['testinfo']['fvonly'];
439439

440440
if (!$isReadOnly) {
441441
?>
@@ -447,9 +447,9 @@ function observationHTML($parts)
447447
<p class="exps-runcount">
448448
<label>
449449
Experiment Runs:
450-
<input type="hidden" name="fvonly" value="'<?php echo $fvonly; ?>'" required="">
450+
<input type="hidden" name="fvonly" value="1" required="">
451451
<input type="number" min="1" max="9" class="text short" name="runs" value="<?php echo $numRuns; ?>" required="">
452-
<b class="exps-runcount-total"></b> <small>Each experiment run uses 2 test runs (1 experiment, 1 control) for each first & repeat view</small>
452+
<b class="exps-runcount-total"></b> <small>Each experiment run uses 2 test runs (1 experiment, 1 control) for first view</small>
453453
</label>
454454
</p>
455455
</div>

www/runtest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,7 @@ function buildSelfHost($hosts)
10901090
$test['video'] = 1;
10911091
$test['label'] = 'Original (Control Run)';
10921092
$test['metadata'] = json_encode($experimentMetadata);
1093+
$test['fvonly'] = 1; // force a first view only test for the experiment and control run
10931094
$id = CreateTest($test, $test['url']);
10941095

10951096
if (isset($id)) {

0 commit comments

Comments
 (0)