From 093cc88149aa72ece9e2e3661fe8f1d2e094493f Mon Sep 17 00:00:00 2001 From: Alex Newton Date: Tue, 26 Nov 2024 09:53:40 +0000 Subject: [PATCH 1/2] Rename date facet --- .../dist/formats/specialist_document/frontend/schema.json | 2 +- .../dist/formats/specialist_document/notification/schema.json | 2 +- .../dist/formats/specialist_document/publisher_v2/schema.json | 2 +- .../formats/shared/definitions/_specialist_document.jsonnet | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content_schemas/dist/formats/specialist_document/frontend/schema.json b/content_schemas/dist/formats/specialist_document/frontend/schema.json index 748863ee1..030268ed1 100644 --- a/content_schemas/dist/formats/specialist_document/frontend/schema.json +++ b/content_schemas/dist/formats/specialist_document/frontend/schema.json @@ -1878,7 +1878,7 @@ "type": "object", "additionalProperties": false, "properties": { - "sfo_case_opened_date": { + "sfo_case_date_announced": { "type": "string", "pattern": "^[1-9][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$" }, diff --git a/content_schemas/dist/formats/specialist_document/notification/schema.json b/content_schemas/dist/formats/specialist_document/notification/schema.json index a63432321..5f329febe 100644 --- a/content_schemas/dist/formats/specialist_document/notification/schema.json +++ b/content_schemas/dist/formats/specialist_document/notification/schema.json @@ -2019,7 +2019,7 @@ "type": "object", "additionalProperties": false, "properties": { - "sfo_case_opened_date": { + "sfo_case_date_announced": { "type": "string", "pattern": "^[1-9][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$" }, diff --git a/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json b/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json index cb97ee3c7..ae5d48d6d 100644 --- a/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json +++ b/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json @@ -1711,7 +1711,7 @@ "type": "object", "additionalProperties": false, "properties": { - "sfo_case_opened_date": { + "sfo_case_date_announced": { "type": "string", "pattern": "^[1-9][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$" }, diff --git a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet index eec3d13f6..f4e2dffb6 100644 --- a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet +++ b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet @@ -1069,7 +1069,7 @@ sfo_case_state: { type: "string", }, - sfo_case_opened_date: { + sfo_case_date_announced: { type: "string", pattern: "^[1-9][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$", }, From d0062196746779bde4a2587bd0998fe873e9b771 Mon Sep 17 00:00:00 2001 From: Alex Newton Date: Tue, 26 Nov 2024 10:55:41 +0000 Subject: [PATCH 2/2] Point ci at specialist pub branch This is necessary to get the ci tests in specialist publisher aimed at the new schema. Currently it looks at an old version of the schema and errors. --- .github/workflows/test-content-schemas-2.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-content-schemas-2.yml b/.github/workflows/test-content-schemas-2.yml index 168571ca5..ea6231d04 100644 --- a/.github/workflows/test-content-schemas-2.yml +++ b/.github/workflows/test-content-schemas-2.yml @@ -65,9 +65,9 @@ jobs: test-specialist-publisher: name: Test Specialist Publisher - uses: alphagov/specialist-publisher/.github/workflows/rspec.yml@main + uses: alphagov/specialist-publisher/.github/workflows/rspec.yml@SFO-Finder-iteration-3 with: - ref: 'main' + ref: 'SFO-Finder-iteration-3' publishingApiRef: ${{ github.ref }} test-travel-advice-publisher: