Skip to content

Commit 242f6d0

Browse files
committed
Add number_of_preparation_days_before_academic_year_starts
This adds a settings variable which can be used to configure how many days before an academic year starts that we enter the "preparation" stage, which is where users can start to upload cohorts for the next year. We're not quite ready yet to enable this in production on the 1st August, so once this variable is live we will edit the setting in production to ensure it's closer to the 1st September. Jira-Issue: MAV-1505
1 parent 09b5934 commit 242f6d0

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

config/settings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ allow_dev_phone_numbers: false
55
disallow_database_seeding: true
66
web_concurrency: 2
77

8+
# Preparation normally starts on the 1st August.
9+
number_of_preparation_days_before_academic_year_starts: 31
10+
811
# NHS Care Identity Service OIDC integration configuration, used by Omniauth via
912
# Devise.
1013
cis2:

terraform/app/variables.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,10 @@ variable "app_version" {
164164
locals {
165165
is_production = var.environment == "production"
166166
parameter_store_variables = tomap({
167-
MAVIS__PDS__ENQUEUE_BULK_UPDATES = var.enable_pds_enqueue_bulk_updates ? "true" : "false"
168-
MAVIS__PDS__WAIT_BETWEEN_JOBS = 0.5
169-
GOOD_JOB_MAX_THREADS = 5
167+
MAVIS__PDS__ENQUEUE_BULK_UPDATES = var.enable_pds_enqueue_bulk_updates ? "true" : "false"
168+
MAVIS__PDS__WAIT_BETWEEN_JOBS = 0.5
169+
MAVIS__NUMBER_OF_PREPARATION_DAYS_BEFORE_ACADEMIC_YEAR_STARTS = 31
170+
GOOD_JOB_MAX_THREADS = 5
170171
})
171172
parameter_store_config_list = [for key, value in local.parameter_store_variables : {
172173
name = key

0 commit comments

Comments
 (0)