From a01af1f6e094004ac0afaea4f7e23881c89809f2 Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Thu, 9 Apr 2020 12:22:44 +0300 Subject: [PATCH] Bump version for release. --- infra/main.tf | 2 +- src/backend/main.test.ts | 2 +- src/backend/main.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/main.tf b/infra/main.tf index b69c82a4..8e4b8c99 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -24,7 +24,7 @@ module "env_dev" { module "env_prod" { # IMPORTANT: The prod environment is pinned to the latest release version, so it won't change during normal development. # See infra/README.md for how to deal with it during releases, when actual prod infra changes need to be made. - source = "git::ssh://git@github.com/futurice/symptomradar.git//infra/modules/main?ref=v2.0" + source = "git::ssh://git@github.com/futurice/symptomradar.git//infra/modules/main?ref=v2.1" providers = { aws.us_east_1 = aws.us_east_1 } # this alias is needed because ACM is only available in the "us-east-1" region name_prefix = "${var.name_prefix}-prod" diff --git a/src/backend/main.test.ts b/src/backend/main.test.ts index 90da1c3a..f81152ec 100644 --- a/src/backend/main.test.ts +++ b/src/backend/main.test.ts @@ -25,7 +25,7 @@ const incomingResponseSample: FrontendResponseModelT = { }; const persistedResponseSample: BackendResponseModelT = { age_group: '20', - app_version: 'v2.0', + app_version: 'v2.1', breathing_difficulties: 'no', corona_suspicion: 'no', cough: 'mild', diff --git a/src/backend/main.ts b/src/backend/main.ts index ac83b2f9..73c1fdb9 100644 --- a/src/backend/main.ts +++ b/src/backend/main.ts @@ -56,7 +56,7 @@ export function prepareResponseForStorage( timestamp: new Date(timestamp()) // for security, don't trust browser clock, as it may be wrong or fraudulent .toISOString() .replace(/:..\..*/, ':00.000Z'), // to preserve privacy, intentionally reduce precision of the timestamp - app_version: 'v2.0', // TODO: This should be set by the deploy process, not hard-coded! + app_version: 'v2.1', // TODO: This should be set by the deploy process, not hard-coded! country_code: countryCode, postal_code: mapPostalCode(response).postal_code, // to protect the privacy of participants from very small postal code areas, they are merged into larger ones, based on known population data duration: response.duration === null ? null : parseInt(response.duration),