From dfe50041f34cb93532526ce6ea8a36ea73a17ab5 Mon Sep 17 00:00:00 2001 From: Tom Richards Date: Mon, 25 Nov 2024 10:31:09 +0000 Subject: [PATCH] default pinboard feature switch to ON in all envs (and remove previous stage specific default) following release of https://github.com/guardian/pinboard/pull/312 --- app/controllers/V2App.scala | 3 +-- app/model/FeatureSwitches.scala | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/V2App.scala b/app/controllers/V2App.scala index d3e359ba38..ff5d5553d5 100644 --- a/app/controllers/V2App.scala +++ b/app/controllers/V2App.scala @@ -148,8 +148,7 @@ class V2App( isDev, maybePinboardUrl = pinboardPermission match { case AccessGranted - if config.environment.stage != "prod" || maybePinboardFeatureSwitch - .exists(_.enabled) => + if maybePinboardFeatureSwitch.exists(_.enabled) => Some( s"https://pinboard.${config.environment.correspondingToolsDomainSuffix}/pinboard.loader.js" ) diff --git a/app/model/FeatureSwitches.scala b/app/model/FeatureSwitches.scala index 831e1bd75b..edd387f22c 100644 --- a/app/model/FeatureSwitches.scala +++ b/app/model/FeatureSwitches.scala @@ -44,7 +44,7 @@ object PinboardIntegration extends FeatureSwitch( key = "pinboard", title = "Enable Pinboard integration", - enabled = false + enabled = true ) object FeatureSwitches {