Skip to content

Commit

Permalink
Remove cross account switch and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
janua committed Oct 18, 2016
1 parent 8e9199e commit 8ec1149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
10 changes: 0 additions & 10 deletions common/app/conf/switches/FaciaSwitches.scala
Expand Up @@ -65,14 +65,4 @@ trait FaciaSwitches {
exposeClientSide = false
)

val FaciaPressCrossAccountSwitch = Switch(
SwitchGroup.Facia,
"facia-press-cross-account",
"If this is switched on, facia-press will use the cross account FAPI client, reading from the tools bucket",
owners = Seq(Owner.withGithub("janua")),
safeState = Off,
sellByDate = never,
exposeClientSide = false
)

}
12 changes: 2 additions & 10 deletions facia-press/app/frontpress/FapiFrontPress.scala
Expand Up @@ -31,11 +31,7 @@ class LiveFapiFrontPress(val wsClient: WSClient, val capiClientForFrontsSeo: Con
apiKey = Configuration.contentApi.key.getOrElse("facia-press")
)

implicit def fapiClient: ApiClient =
if (Switches.FaciaPressCrossAccountSwitch.isSwitchedOn)
FrontsApi.crossAccountClient
else
FrontsApi.amazonClient
implicit val fapiClient: ApiClient = FrontsApi.crossAccountClient

def pressByPathId(path: String): Future[Unit] =
getPressedFrontForPath(path)
Expand All @@ -61,11 +57,7 @@ class DraftFapiFrontPress(val wsClient: WSClient, val capiClientForFrontsSeo: Co
apiKey = Configuration.contentApi.key.getOrElse("facia-press")
)

implicit def fapiClient: ApiClient =
if (Switches.FaciaPressCrossAccountSwitch.isSwitchedOn)
FrontsApi.crossAccountClient
else
FrontsApi.amazonClient
implicit val fapiClient: ApiClient = FrontsApi.crossAccountClient

def pressByPathId(path: String): Future[Unit] =
getPressedFrontForPath(path)
Expand Down

0 comments on commit 8ec1149

Please sign in to comment.