-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/guardian/frontend into dbla…
…tcher/newsletter-id-snaps
- Loading branch information
Showing
26 changed files
with
276 additions
and
1,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,18 @@ trait ABTestSwitches { | |
"Test the impact of showing the user a component that highlights the Guardians journalism", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2024, 12, 18)), | ||
sellByDate = Some(LocalDate.of(2025, 1, 29)), | ||
exposeClientSide = true, | ||
highImpact = false, | ||
) | ||
|
||
Switch( | ||
ABTests, | ||
"ab-onwards-content-article", | ||
"Test the impact of showing the galleries onwards content component on article pages", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2025, 1, 29)), | ||
exposeClientSide = true, | ||
highImpact = false, | ||
) | ||
|
@@ -70,4 +81,14 @@ trait ABTestSwitches { | |
exposeClientSide = true, | ||
highImpact = false, | ||
) | ||
Switch( | ||
ABTests, | ||
"ab-gpid-prebid-ad-units", | ||
"Test new GPID prebid ad units", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2024, 12, 18)), | ||
exposeClientSide = true, | ||
highImpact = false, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,7 +233,7 @@ trait PerformanceSwitches { | |
"Shorten the surrogate cache time for recent articles for load testing", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = LocalDate.of(2024, 11, 19), | ||
sellByDate = LocalDate.of(2025, 1, 20), | ||
exposeClientSide = false, | ||
highImpact = false, | ||
) | ||
|
@@ -244,7 +244,7 @@ trait PerformanceSwitches { | |
"Shorten the surrogate cache time for older articles for load testing", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = LocalDate.of(2024, 11, 19), | ||
sellByDate = LocalDate.of(2025, 1, 20), | ||
exposeClientSide = false, | ||
highImpact = false, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
common/app/model/dotcomrendering/pageElements/EditionsCrosswordRenderingDataModel.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package model.dotcomrendering.pageElements | ||
|
||
import com.gu.contentapi.client.model.v1.Crossword | ||
import com.gu.contentapi.json.CirceEncoders._ | ||
import io.circe.JsonObject | ||
import io.circe.syntax._ | ||
|
||
case class EditionsCrosswordRenderingDataModel( | ||
quick: Crossword, | ||
cryptic: Crossword, | ||
) | ||
|
||
object EditionsCrosswordRenderingDataModel { | ||
def toJson(model: EditionsCrosswordRenderingDataModel): String = { | ||
JsonObject( | ||
"quick" -> model.quick.asJson.dropNullValues, | ||
"cryptic" -> model.cryptic.asJson.dropNullValues, | ||
).asJson.dropNullValues.noSpaces | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.