From 2bc5aac5f76939701db72e13bb8300acca6cd14d Mon Sep 17 00:00:00 2001 From: David McKee Date: Wed, 6 Dec 2023 15:47:11 +0000 Subject: [PATCH] Move back to semantic versioning Whilst there are advantages to having a single number for working out whether a version is new or not (cast to int, done) it is not that much more conceptually difficult to check the major part of the version number, and that does not violate the schema. Whilst it's likely no-one is using it, we probably shouldn't just change it. --- CHANGELOG.md | 3 +++ src/lambdas/determine_legislation_provisions/index.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04926f9d3..f33b9493d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +== v3.0.0 == +Change the version back to semver to not violate our schema. + == v2 == Update Terraform to filter only trigger_enrichment messages. Enrichment lambdas do not attempt to filter based on body JSON. diff --git a/src/lambdas/determine_legislation_provisions/index.py b/src/lambdas/determine_legislation_provisions/index.py index 41528935c..3c9d660ad 100644 --- a/src/lambdas/determine_legislation_provisions/index.py +++ b/src/lambdas/determine_legislation_provisions/index.py @@ -43,7 +43,7 @@ def add_timestamp_and_engine_version(file_data): "uk:tna-enrichment-engine", attrs={"xmlns:uk": "https://caselaw.nationalarchives.gov.uk/akn"}, ) - enrichment_version.string = "2" + enrichment_version.string = "3.0.0" soup.proprietary.append(enrichment_version) soup.FRBRManifestation.FRBRdate.insert_after(enriched_date)