Skip to content

Commit

Permalink
BAU: Remove env variable for welsh language feature switch
Browse files Browse the repository at this point in the history
This no longer controls any behaviour, since we've removed all the logic that depends on this following switching this flag on in all environments.
  • Loading branch information
BeckaL committed Mar 28, 2024
1 parent 90600bd commit 852eec2
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion .env.authdev1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ VTR=["Cl","Cl.Cm"]
#
SUPPORT_MFA_OPTIONS=1
SUPPORT_INTERNATIONAL_NUMBERS=1
SUPPORT_LANGUAGE_CY=1
SUPPORT_ACCOUNT_RECOVERY=1
SUPPORT_AUTH_ORCH_SPLIT=1
SUPPORT_AUTHORIZE_CONTROLLER=1
Expand Down
1 change: 0 additions & 1 deletion .env.build
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ VTR=["Cl","Cl.Cm"]
#
SUPPORT_MFA_OPTIONS=1
SUPPORT_INTERNATIONAL_NUMBERS=1
SUPPORT_LANGUAGE_CY=1
SUPPORT_ACCOUNT_RECOVERY=1
SUPPORT_AUTH_ORCH_SPLIT=1
SUPPORT_AUTHORIZE_CONTROLLER=1
Expand Down
2 changes: 0 additions & 2 deletions ci/tasks/deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ params:
BASIC_AUTH_PASSWORD: ((no-basic-auth-password))
INCOMING_TRAFFIC_CIDR_BLOCKS: '["0.0.0.0/0"]'
BASIC_AUTH_BYPASS_CIDR_BLOCKS: '[]'
SUPPORT_LANGUAGE_CY: "0"
inputs:
- name: frontend-src
- name: frontend-image
Expand Down Expand Up @@ -72,7 +71,6 @@ run:
-var "sidecar_image_uri=${SIDECAR_IMAGE_URI}" \
-var "sidecar_image_tag=${SIDECAR_IMAGE_TAG}" \
-var "sidecar_image_digest=${SIDECAR_IMAGE_DIGEST}" \
-var "support_language_cy=${SUPPORT_LANGUAGE_CY}" \
-var "basic_auth_username=${NORMALISED_BASIC_AUTH_USERNAME}" \
-var "basic_auth_password=${NORMALISED_BASIC_AUTH_PASSWORD}" \
-var "incoming_traffic_cidr_blocks=${INCOMING_TRAFFIC_CIDR_BLOCKS}" \
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/authdev1.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ service_domain = "authdev1.sandpit.account.gov.uk"
zone_id = "Z062000928I8D7S9X1OVA"
session_expiry = 300000
gtm_id = ""
support_language_cy = "1"
support_account_recovery = "1"
support_auth_orch_split = "1"
support_authorize_controller = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/authdev2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ service_domain = "authdev2.sandpit.account.gov.uk"
zone_id = "Z062000928I8D7S9X1OVA"
session_expiry = 300000
gtm_id = ""
support_language_cy = "1"
support_account_recovery = "1"
support_auth_orch_split = "1"
support_authorize_controller = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/build.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ frontend_task_definition_cpu = 512
frontend_task_definition_memory = 1024

support_international_numbers = "1"
support_language_cy = "1"
support_account_recovery = "1"
support_auth_orch_split = "1"
support_authorize_controller = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/dev.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ basic_auth_bypass_cidr_blocks = []
deployer_role_arn = "arn:aws:iam::761723964695:role/deployer-role-pipeline-dev"
common_state_bucket = "digital-identity-dev-tfstate"
incoming_traffic_cidr_blocks = ["0.0.0.0/0"]
support_language_cy = "1"
support_account_recovery = "1"
support_international_numbers = "1"

Expand Down
4 changes: 0 additions & 4 deletions ci/terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ locals {
name = "SUPPORT_INTERNATIONAL_NUMBERS"
value = var.support_international_numbers
},
{
name = "SUPPORT_LANGUAGE_CY"
value = var.support_language_cy
},
{
name = "SUPPORT_AUTH_ORCH_SPLIT"
value = var.support_auth_orch_split
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/integration.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ frontend_task_definition_cpu = 512
frontend_task_definition_memory = 1024

support_international_numbers = "1"
support_language_cy = "1"
support_account_recovery = "1"
support_account_interventions = "0"
support_auth_orch_split = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/sandpit.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ service_domain = "sandpit.account.gov.uk"
zone_id = "Z1031735QZMC84WYW1TP"
session_expiry = 300000
gtm_id = ""
support_language_cy = "1"
support_account_recovery = "1"
support_auth_orch_split = "1"
support_authorize_controller = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/staging.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ frontend_task_definition_memory = 1024
frontend_auto_scaling_min_count = 4
frontend_auto_scaling_max_count = 240
ecs_desired_count = 4
support_language_cy = "1"
support_international_numbers = "1"
support_account_recovery = "1"
support_account_interventions = "1"
Expand Down
4 changes: 0 additions & 4 deletions ci/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ variable "support_international_numbers" {
type = string
}

variable "support_language_cy" {
type = string
}

variable "support_auth_orch_split" {
type = string
default = "0"
Expand Down
1 change: 0 additions & 1 deletion docker-compose.frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ services:
ANALYTICS_COOKIE_DOMAIN: localhost

SUPPORT_INTERNATIONAL_NUMBERS: ${SUPPORT_INTERNATIONAL_NUMBERS:?this should be set in your .env file.}
SUPPORT_LANGUAGE_CY: ${SUPPORT_LANGUAGE_CY:?this should be set in your .env file.}
SUPPORT_ACCOUNT_RECOVERY: ${SUPPORT_ACCOUNT_RECOVERY:?this should be set in your .env file.}
SUPPORT_AUTH_ORCH_SPLIT: ${SUPPORT_AUTH_ORCH_SPLIT:?this should be set in your .env file.}

Expand Down
4 changes: 0 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export function supportInternationalNumbers(): boolean {
return process.env.SUPPORT_INTERNATIONAL_NUMBERS === "1";
}

export function supportLanguageCY(): boolean {
return process.env.SUPPORT_LANGUAGE_CY === "1";
}

export function supportAccountRecovery(): boolean {
return process.env.SUPPORT_ACCOUNT_RECOVERY === "1";
}
Expand Down

0 comments on commit 852eec2

Please sign in to comment.