From 4cea8d2d1dadaae410d1d9de24f5e68150f6eb6b Mon Sep 17 00:00:00 2001 From: Alex Sanders Date: Fri, 19 Apr 2024 10:28:37 +0100 Subject: [PATCH 1/2] Remove the adapated site experiment It was successful and so has become permanent --- common/app/experiments/Experiments.scala | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/common/app/experiments/Experiments.scala b/common/app/experiments/Experiments.scala index a70c783ca28..1879092e009 100644 --- a/common/app/experiments/Experiments.scala +++ b/common/app/experiments/Experiments.scala @@ -11,7 +11,6 @@ import java.time.LocalDate object ActiveExperiments extends ExperimentsDefinition { override val allExperiments: Set[Experiment] = Set( - AdaptiveSite, CommercialMegaTest, DCRTagPages, UpdatedHeaderDesign, @@ -29,15 +28,6 @@ object CommercialMegaTest participationGroup = Perc5A, ) -object AdaptiveSite - extends Experiment( - name = "adaptive-site", - description = "Enables serving an adaptive version of the site that responds to page performance", - owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com")), - sellByDate = LocalDate.of(2024, 5, 2), - participationGroup = Perc1A, - ) - object DCRTagPages extends Experiment( name = "dcr-tag-pages", From 83deb91075d20eb5fee4aa9bb678495265e4d236 Mon Sep 17 00:00:00 2001 From: Alex Sanders Date: Fri, 19 Apr 2024 10:45:42 +0100 Subject: [PATCH 2/2] add adaptive site switch --- common/app/conf/switches/PerformanceSwitches.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/app/conf/switches/PerformanceSwitches.scala b/common/app/conf/switches/PerformanceSwitches.scala index 5851279b6e9..ac9c1379f4c 100644 --- a/common/app/conf/switches/PerformanceSwitches.scala +++ b/common/app/conf/switches/PerformanceSwitches.scala @@ -186,4 +186,14 @@ trait PerformanceSwitches { sellByDate = never, exposeClientSide = false, ) + + val AdaptiveSite = Switch( + SwitchGroup.Performance, + "adaptive-site", + "If switched on, the site will run a pared-back set of features on poorly-performing page views.", + owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")), + safeState = On, + sellByDate = never, + exposeClientSide = true, + ) }