From 479cc3e1bbc79ad0474a288b673643ddfb860445 Mon Sep 17 00:00:00 2001 From: "Hassan D. M. Sambo" Date: Tue, 31 Oct 2023 12:27:24 -0400 Subject: [PATCH] #2514 Enforcing version control --- backend/audit/intakelib/checks/check_version_number.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/audit/intakelib/checks/check_version_number.py b/backend/audit/intakelib/checks/check_version_number.py index 4562ea849e..adb0099833 100644 --- a/backend/audit/intakelib/checks/check_version_number.py +++ b/backend/audit/intakelib/checks/check_version_number.py @@ -7,15 +7,12 @@ logger = logging.getLogger(__name__) -AUTHORIZED_VERSIONS = {"1.0.0", "1.0.1", "1.0.2"} +AUTHORIZED_VERSIONS = {"1.0.0", "1.0.1", "1.0.2", "1.0.3"} # DESCRIPTION -# This is intended to be a check for the version number of the workbook. +# This checks if the uploaded workbook version is valid. def validate_workbook_version(ir): - # FIXME: This is a no-op for now. Remove below pass when ready to enforce version check. - pass - version_range = get_range_by_name(ir, "version") errors = [] for index, version in enumerate(version_range["values"]):