Skip to content

Commit

Permalink
Merge branch 'main' into al-bump-cmp-commerical
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed Oct 16, 2023
2 parents 69ab821 + dd6832b commit cec5044
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 444 deletions.
27 changes: 0 additions & 27 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import com.gu.riffraff.artifact.RiffRaffArtifact.autoImport._
import play.sbt.routes.RoutesKeys
import com.typesafe.sbt.web.SbtWeb.autoImport._
import com.gu.Dependencies._
Expand Down Expand Up @@ -238,32 +237,6 @@ val main = root()
preview,
rss,
)
.settings(
riffRaffUploadArtifactBucket := Some(
System.getenv().getOrDefault("RIFF_RAFF_ARTIFACT_BUCKET", "aws-frontend-teamcity"),
),
riffRaffUploadManifestBucket := Some(
System.getenv().getOrDefault("RIFF_RAFF_BUILD_BUCKET", "aws-frontend-teamcity"),
),
riffRaffManifestProjectName := "dotcom:all",
riffRaffArtifactResources := Seq(
(admin / Universal / packageBin).value -> s"${(admin / name).value}/${(admin / Universal / packageBin).value.getName}",
(applications / Universal / packageBin).value -> s"${(applications / name).value}/${(applications / Universal / packageBin).value.getName}",
(archive / Universal / packageBin).value -> s"${(archive / name).value}/${(archive / Universal / packageBin).value.getName}",
(article / Universal / packageBin).value -> s"${(article / name).value}/${(article / Universal / packageBin).value.getName}",
(commercial / Universal / packageBin).value -> s"${(commercial / name).value}/${(commercial / Universal / packageBin).value.getName}",
(diagnostics / Universal / packageBin).value -> s"${(diagnostics / name).value}/${(diagnostics / Universal / packageBin).value.getName}",
(discussion / Universal / packageBin).value -> s"${(discussion / name).value}/${(discussion / Universal / packageBin).value.getName}",
(identity / Universal / packageBin).value -> s"${(identity / name).value}/${(identity / Universal / packageBin).value.getName}",
(facia / Universal / packageBin).value -> s"${(facia / name).value}/${(facia / Universal / packageBin).value.getName}",
(faciaPress / Universal / packageBin).value -> s"${(faciaPress / name).value}/${(faciaPress / Universal / packageBin).value.getName}",
(onward / Universal / packageBin).value -> s"${(onward / name).value}/${(onward / Universal / packageBin).value.getName}",
(preview / Universal / packageBin).value -> s"${(preview / name).value}/${(preview / Universal / packageBin).value.getName}",
(rss / Universal / packageBin).value -> s"${(rss / name).value}/${(rss / Universal / packageBin).value.getName}",
(sport / Universal / packageBin).value -> s"${(sport / name).value}/${(sport / Universal / packageBin).value.getName}",
baseDirectory.value / "riff-raff.yaml" -> "riff-raff.yaml",
),
)
val badgeHash = inputKey[Unit]("Generate special badge salts and hashes")
badgeHash := {
import java.math.BigInteger
Expand Down
5 changes: 0 additions & 5 deletions common/app/common/configuration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,6 @@ class GuardianConfiguration extends GuLogging {
lazy val token = configuration.getStringProperty("github.token")
}

object teamcity {
lazy val host = configuration.getMandatoryStringProperty("teamcity.host")
lazy val internalHost = configuration.getMandatoryStringProperty("teamcity.internalhost")
}

object ajax {
lazy val url = configuration.getStringProperty("ajax.url").getOrElse("")
lazy val nonSecureUrl =
Expand Down
10 changes: 10 additions & 0 deletions common/app/conf/switches/CommercialSwitches.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ trait CommercialSwitches {
sellByDate = never,
exposeClientSide = true,
)

val frontsBannerAds: Switch = Switch(
group = Commercial,
name = "fronts-banner-ads",
description = "Enable banner ads to display instead of MPUs and merch-high on fronts pages.",
owners = group(Commercial),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
)
}

trait PrebidSwitches {
Expand Down
32 changes: 11 additions & 21 deletions common/app/experiments/Experiments.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ object ActiveExperiments extends ExperimentsDefinition {
Lightbox,
ServerSideLiveblogInlineAds,
OphanEsm,
SectionFrontsBannerAds,
HeaderTopBarSearchCapi,
AdaptiveSite,
OfferHttp3,
Expand All @@ -42,6 +41,16 @@ object Lightbox
participationGroup = Perc0B,
)

object ServerSideLiveblogInlineAds
extends Experiment(
name = "server-side-liveblog-inline-ads",
description =
"Test whether we can load liveblog inline ads server-side without negative effects on user experience or revenue",
owners = Seq(Owner.withGithub("@guardian/commercial-dev")),
sellByDate = LocalDate.of(2023, 11, 1),
participationGroup = Perc0C,
)

object FrontsBannerAdsDcr
extends Experiment(
name = "fronts-banner-ads-dcr",
Expand Down Expand Up @@ -75,7 +84,7 @@ object HeaderTopBarSearchCapi
name = "header-top-bar-search-capi",
description = "Adds CAPI search to the top nav",
owners = Seq(Owner.withGithub("@guardian/dotcom-platform")),
sellByDate = LocalDate.of(2023, 10, 10),
sellByDate = LocalDate.of(2023, 11, 10),
participationGroup = Perc1B,
)

Expand All @@ -88,25 +97,6 @@ object OfferHttp3
participationGroup = Perc1E,
)

object ServerSideLiveblogInlineAds
extends Experiment(
name = "server-side-liveblog-inline-ads",
description =
"Test whether we can load liveblog inline ads server-side without negative effects on user experience or revenue",
owners = Seq(Owner.withGithub("@guardian/commercial-dev")),
sellByDate = LocalDate.of(2023, 11, 1),
participationGroup = Perc5A,
)

object SectionFrontsBannerAds
extends Experiment(
name = "section-fronts-banner-ads",
description = "Creates a new ad experience on section fronts, replacing MPUs with banner ads",
owners = Seq(Owner.withGithub("@guardian/commercial-dev")),
sellByDate = LocalDate.of(2023, 10, 31),
participationGroup = Perc20A,
)

object OphanEsm
extends Experiment(
name = "ophan-esm",
Expand Down
1 change: 1 addition & 0 deletions common/app/services/dotcomrendering/PressedContent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ object PressedContent {
"/politics/ng-interactive/2019/dec/14/johnson-ascendant-your-general-election-recap",
"/info/ng-interactive/2019/dec/19/working-report",
"/cities/ng-interactive/2019/jan/30/high-street-crisis-town-centres-lose-8-of-shops-in-five-years",
"/world/ng-interactive/2019/mar/29/a-year-of-bloodshed-at-gaza-border-protests",
// 2020
"/artanddesign/ng-interactive/2020/jan/12/mole-man-and-me-sue-webster-artist-home-david-adjaye",
"/artanddesign/ng-interactive/2020/jan/12/art-into-nature-nature-into-art-cesar-manrique-the-architect-of-lanzarote",
Expand Down
3 changes: 0 additions & 3 deletions common/conf/env/DEVINFRA.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ weather.api.key=none

images.signature-salt=none

teamcity.host=
riffraff.url=

#general
Expand Down Expand Up @@ -106,8 +105,6 @@ weather.api.key=none
# Radiator
riffraff.url=https://localhost
riffraff.apikey=none
teamcity.host=http://localhost
teamcity.internalhost=http://localhost

facebook.graphApi.accessToken=fake-access-token

Expand Down
116 changes: 0 additions & 116 deletions dev/post-integration-test-hook.sh

This file was deleted.

9 changes: 0 additions & 9 deletions dev/teamcity/dist-assetmonitor-tc

This file was deleted.

51 changes: 0 additions & 51 deletions dev/teamcity/dist-assets-tc

This file was deleted.

14 changes: 0 additions & 14 deletions dev/teamcity/dist-npm-tc

This file was deleted.

39 changes: 0 additions & 39 deletions dev/teamcity/dist-publish-assets-tc

This file was deleted.

11 changes: 0 additions & 11 deletions dev/teamcity/test-root-tc

This file was deleted.

Loading

0 comments on commit cec5044

Please sign in to comment.