Skip to content

Commit 07496cf

Browse files
authored
Merge pull request #224 from hmrc/DL-16142
DL-16142 - remove feature flag
2 parents b26f39c + 207149d commit 07496cf

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

app/config/ApplicationConfig.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,4 @@ class ApplicationConfig @Inject()(val conf: ServicesConfig,
7777
lazy val backToInformHMRCNrlUrl: Option[String] = Option(conf.getString("microservice.services.agent-client-mandate-frontend.informHMRCNrlUrl"))
7878

7979
def haveYouRegisteredUrl: String = conf.getString(s"microservice.services.awrs.haveYouRegisteredUrl")
80-
def enrolmentJourneyFeature: Boolean = Try(conf.getBoolean("feature.enrolmentJourney")).getOrElse(false)
8180
}

app/controllers/BusinessVerificationController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class BusinessVerificationController @Inject()(val config: ApplicationConfig,
6969
rawBackLink <- currentBackLink
7070
backLink: Option[String] = rawBackLink.orElse {
7171
service match {
72-
case "awrs" if appConfig.enrolmentJourneyFeature => Some(appConfig.haveYouRegisteredUrl)
72+
case "awrs" => Some(appConfig.haveYouRegisteredUrl)
7373
case _ => rawBackLink
7474
}
7575
}

conf/application.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,3 @@ cancelRedirectUrl: "https://www.gov.uk/"
147147
allowedHosts = [
148148
"localhost"
149149
]
150-
151-
feature.enrolmentJourney = true

project/AppDependencies.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ object AppDependencies {
2121

2222
val compile: Seq[ModuleID] = Seq(
2323
ws,
24-
"uk.gov.hmrc" %% "bootstrap-frontend-play-30" % "10.0.0",
24+
"uk.gov.hmrc" %% "bootstrap-frontend-play-30" % "10.1.0",
2525
"uk.gov.hmrc" %% "domain-play-30" % "11.0.0",
2626
"uk.gov.hmrc" %% "play-partials-play-30" % "10.1.0",
2727
"uk.gov.hmrc" %% "play-frontend-hmrc-play-30" % "12.8.0",
2828
"uk.gov.hmrc" %% "http-caching-client-play-30" % "12.2.0",
2929
)
3030

3131
val test: Seq[ModuleID] = Seq(
32-
"uk.gov.hmrc" %% "bootstrap-test-play-30" % "10.0.0" % Test
32+
"uk.gov.hmrc" %% "bootstrap-test-play-30" % "10.1.0" % Test
3333
)
3434
val itDependencies: Seq[ModuleID] = Seq()
3535
}

test/controllers/BusinessVerificationControllerSpec.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class BusinessVerificationControllerSpec
220220
}
221221
}
222222

223-
"redirect to 'haveYouRegisteredUrl' if service is 'awrs' and enrolmentJourneyFeature is true, and no backlink is found" in {
223+
"redirect to 'haveYouRegisteredUrl' if service is 'awrs', and no backlink is found" in {
224224
val mockAppConfig = mock[ApplicationConfig]
225225
val userId = s"user-${UUID.randomUUID}"
226226
val service = "awrs"
@@ -234,7 +234,6 @@ class BusinessVerificationControllerSpec
234234
).thenReturn(Future.successful(None))
235235
when(mockAppConfig.getNavTitle(service)).thenReturn(Some("bc.awrs.serviceName"))
236236
when(mockAppConfig.serviceList).thenReturn(List(service))
237-
when(mockAppConfig.enrolmentJourneyFeature).thenReturn(true)
238237
when(mockAppConfig.haveYouRegisteredUrl).thenReturn("http://localhost:9913/alcohol-wholesale-scheme/have-you-registered")
239238
when(mockAppConfig.businessTypeMap(service, isAgent = false)).thenReturn(Seq(
240239
"OBP" -> "bc.business-verification.PRT", "GROUP" -> "bc.business-verification.GROUP", "LTD" -> "bc.business-verification.LTD",

0 commit comments

Comments
 (0)