Skip to content

Commit af00d98

Browse files
authored
VED-805 Refactor meshprocessor (#945)
* init: move * terraform fmt * terraform * sonar * -shared * revert source_path * smells * ruff * fmt * unsplit line II
1 parent 57bf147 commit af00d98

File tree

15 files changed

+29
-26
lines changed

15 files changed

+29
-26
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ updates:
99
directories:
1010
- "/batch_processor_filter"
1111
- "/infrastructure/grafana/non-prod/docker"
12-
- "/lambdas/filenameprocessor"
1312
- "/lambdas/ack_backend"
1413
- "/lambdas/delta_backend"
14+
- "/lambdas/filenameprocessor"
15+
- "/lambdas/mesh_processor"
1516
- "/lambdas/recordprocessor"
16-
- "/mesh_processor"
1717
- "/sandbox"
1818
schedule:
1919
interval: "daily"
@@ -51,13 +51,13 @@ updates:
5151
- "/"
5252
- "/backend"
5353
- "/batch_processor_filter"
54-
- "/mesh_processor"
55-
- "/lambdas/recordprocessor"
5654
- "/lambdas/ack_backend"
5755
- "/lambdas/delta_backend"
5856
- "/lambdas/filenameprocessor"
5957
- "/lambdas/id_sync"
58+
- "/lambdas/mesh_processor"
6059
- "/lambdas/mns_subscription"
60+
- "/lambdas/recordprocessor"
6161
- "/lambdas/redis_sync"
6262
- "/lambdas/shared"
6363
- "/tests/e2e"

.github/workflows/quality-checks.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,6 @@ jobs:
142142
poetry run coverage run -m unittest discover || echo "fhir-api tests failed" >> ../failed_tests.txt
143143
poetry run coverage xml -o ../backend-coverage.xml
144144
145-
- name: Run unittest with coverage-mesh-processor
146-
working-directory: mesh_processor
147-
id: meshprocessor
148-
continue-on-error: true
149-
run: |
150-
poetry install
151-
poetry run coverage run -m unittest discover || echo "mesh_processor tests failed" >> ../failed_tests.txt
152-
poetry run coverage xml -o ../mesh_processor-coverage.xml
153-
154145
- name: Run unittest with coverage-ack-lambda
155146
working-directory: lambdas/ack_backend
156147
id: acklambda
@@ -195,6 +186,15 @@ jobs:
195186
poetry run coverage run --rcfile=.coveragerc --source=src -m unittest discover || echo "id_sync tests failed" >> ../../failed_tests.txt
196187
poetry run coverage xml -o ../../id_sync-coverage.xml
197188
189+
- name: Run unittest with coverage-mesh-processor
190+
working-directory: lambdas/mesh_processor
191+
id: meshprocessor
192+
continue-on-error: true
193+
run: |
194+
poetry install
195+
poetry run coverage run -m unittest discover || echo "mesh_processor tests failed" >> ../../failed_tests.txt
196+
poetry run coverage xml -o ../../mesh_processor-coverage.xml
197+
198198
- name: Run unittest with coverage-mns-subscription
199199
working-directory: lambdas/mns_subscription
200200
id: mns_subscription

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL=/usr/bin/env bash -euo pipefail
22

3-
PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS = backend batch_processor_filter mesh_processor lambdas/ack_backend lambdas/delta_backend lambdas/filenameprocessor lambdas/id_sync lambdas/mns_subscription lambdas/recordprocessor lambdas/redis_sync lambdas/shared
3+
PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS = backend batch_processor_filter lambdas/ack_backend lambdas/delta_backend lambdas/filenameprocessor lambdas/id_sync lambdas/mesh_processor lambdas/mns_subscription lambdas/recordprocessor lambdas/redis_sync lambdas/shared
44
PYTHON_PROJECT_DIRS = tests/e2e tests/e2e_batch quality_checks $(PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS)
55

66
.PHONY: install lint format format-check clean publish build-proxy release initialise-all-python-venvs update-all-python-dependencies run-all-python-unit-tests build-all-docker-images

backend/src/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Urls:
1111

1212
nhs_number = "https://fhir.nhs.uk/Id/nhs-number"
1313
vaccination_procedure = "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-VaccinationProcedure"
14-
snomed = "http://snomed.info/sct"
14+
snomed = "http://snomed.info/sct" # NOSONAR(S5332)
1515
nhs_number_verification_status_structure_definition = (
1616
"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus"
1717
)

immunisation-fhir-api.code-workspace

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
{
77
"path": "backend",
88
},
9-
{
10-
"path": "mesh_processor",
11-
},
129
{
1310
"path": "lambdas/ack_backend",
1411
},
@@ -21,6 +18,9 @@
2118
{
2219
"path": "lambdas/id_sync",
2320
},
21+
{
22+
"path": "lambdas/mesh_processor",
23+
},
2424
{
2525
"path": "lambdas/mns_subscription",
2626
},

infrastructure/instance/mesh_processor.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22
locals {
3-
mesh_processor_lambda_dir = abspath("${path.root}/../../mesh_processor")
3+
mesh_processor_lambda_dir = abspath("${path.root}/../../lambdas/mesh_processor")
44
mesh_processor_lambda_files = fileset(local.mesh_processor_lambda_dir, "**")
55
mesh_processor_lambda_dir_sha = sha1(join("", [for f in local.mesh_processor_lambda_files : filesha1("${local.mesh_processor_lambda_dir}/${f}")]))
66
# This should match the prefix used in the global Terraform
File renamed without changes.

0 commit comments

Comments
 (0)