Skip to content

Commit 2a65143

Browse files
authored
Merge pull request #4073 from nhsuk/preparation-days-config
Configure `number_of_preparation_days_before_academic_year_starts`
2 parents b562795 + fbf80b1 commit 2a65143

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

terraform/app/env/production.tfvars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ resource_name = {
1010
rails_env = "production"
1111
rails_master_key_path = "/copilot/mavis/production/secrets/RAILS_MASTER_KEY"
1212

13+
# TODO: Change this to the default value of 31 once rollover is built.
14+
number_of_preparation_days_before_academic_year_starts = 1
15+
1316
http_hosts = {
1417
MAVIS__HOST = "www.manage-vaccinations-in-schools.nhs.uk"
1518
MAVIS__GIVE_OR_REFUSE_CONSENT_HOST = "www.give-or-refuse-consent-for-vaccinations.nhs.uk"

terraform/app/env/qa.tfvars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ rails_master_key_path = "/copilot/mavis/secrets/STAGING_RAILS_MASTER_KEY"
1313
enable_cis2 = false
1414
enable_pds_enqueue_bulk_updates = false
1515

16+
# Normally this is 31, but this gives us 2 weeks of additional testing.
17+
number_of_preparation_days_before_academic_year_starts = 45
18+
1619
http_hosts = {
1720
MAVIS__HOST = "qa.mavistesting.com"
1821
MAVIS__GIVE_OR_REFUSE_CONSENT_HOST = "qa.mavistesting.com"

terraform/app/env/test.tfvars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ resource_name = {
1010
rails_env = "staging"
1111
rails_master_key_path = "/copilot/mavis/secrets/STAGING_RAILS_MASTER_KEY"
1212

13+
# Normally this is 31, but this gives us 2 weeks of additional testing.
14+
number_of_preparation_days_before_academic_year_starts = 45
15+
1316
http_hosts = {
1417
MAVIS__HOST = "test.mavistesting.com"
1518
MAVIS__GIVE_OR_REFUSE_CONSENT_HOST = "test.mavistesting.com"

terraform/app/variables.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ variable "enable_pds_enqueue_bulk_updates" {
147147
nullable = false
148148
}
149149

150+
variable "number_of_preparation_days_before_academic_year_starts" {
151+
type = number
152+
default = 31
153+
description = "How many days before the start of the academic year to start the preparation period."
154+
nullable = false
155+
}
156+
150157
variable "enable_splunk" {
151158
type = bool
152159
default = true
@@ -166,7 +173,7 @@ locals {
166173
parameter_store_variables = tomap({
167174
MAVIS__PDS__ENQUEUE_BULK_UPDATES = var.enable_pds_enqueue_bulk_updates ? "true" : "false"
168175
MAVIS__PDS__WAIT_BETWEEN_JOBS = 0.5
169-
MAVIS__NUMBER_OF_PREPARATION_DAYS_BEFORE_ACADEMIC_YEAR_STARTS = 31
176+
MAVIS__NUMBER_OF_PREPARATION_DAYS_BEFORE_ACADEMIC_YEAR_STARTS = var.number_of_preparation_days_before_academic_year_starts
170177
GOOD_JOB_MAX_THREADS = 5
171178
})
172179
parameter_store_config_list = [for key, value in local.parameter_store_variables : {

0 commit comments

Comments
 (0)