-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into jlk/commercial-bundle…
…-fetcher
- Loading branch information
Showing
12 changed files
with
115 additions
and
26 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
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, | ||
) | ||
|
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
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
24 changes: 24 additions & 0 deletions
24
static/src/javascripts/projects/common/modules/experiments/tests/onwards-content-article.js
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,24 @@ | ||
export const onwardsContentArticle = { | ||
id: 'onwardsContentArticle', | ||
start: '2024-11-25', | ||
expiry: '2025-01-29', | ||
author: '[email protected]', | ||
description: | ||
'Test the impact of showing the galleries onwards content component on article pages.', | ||
audience: 0 / 100, | ||
audienceOffset: 0 / 100, | ||
audienceCriteria: 'Article pages', | ||
successMeasure: | ||
'Users are more likely to click a link in the onward content component.', | ||
canRun: () => true, | ||
variants: [ | ||
{ | ||
id: 'control', | ||
test: () => {}, | ||
}, | ||
{ | ||
id: 'variant', | ||
test: () => {}, | ||
}, | ||
], | ||
}; |
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