Skip to content

Commit bbbe310

Browse files
committed
Merge branch 'master' into VED-789-Validation-Schema
# Conflicts: # immunisation-fhir-api.code-workspace
2 parents cfa3ad1 + 87960ca commit bbbe310

File tree

449 files changed

+21438
-25134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

449 files changed

+21438
-25134
lines changed

.editorconfig

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,8 @@ end_of_line = lf
1111
[Makefile]
1212
indent_style = tab
1313

14-
[*.{xml,js,json,yaml}]
14+
[*.{xml,js,json,yaml,yml}]
1515
indent_size = 2
1616

1717
[*.postman_collection.json]
1818
indent_style = tab
19-
20-
[*.yaml]
21-
trim_trailing_whitespace = false
22-
23-
[*.js]
24-
ij_javascript_force_semicolon_style = true
25-
ij_javascript_use_semicolon_after_statement = false
26-
27-
[*.md]
28-
trim_trailing_whitespace = false

.flake8

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser: [e.g. chrome, safari]
29-
- Version: [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser: [e.g. chrome, safari]
30+
- Version: [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser: [e.g. stock browser, safari]
35-
- Version: [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser: [e.g. stock browser, safari]
37+
- Version: [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/pull_request_template.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
## Summary
2-
* Routine Change
3-
* :exclamation: Breaking Change
4-
* :robot: Operational or Infrastructure Change
5-
* :sparkles: New Feature
6-
* :warning: Potential issues that might be caused by this change
72

8-
Add any other relevant notes or explanations here. **Remove this line if you have nothing to add.**
3+
- Routine Change
4+
- :exclamation: Breaking Change
5+
- :robot: Operational or Infrastructure Change
6+
- :sparkles: New Feature
7+
- :warning: Potential issues that might be caused by this change
98

9+
Add any other relevant notes or explanations here. **Remove this line if you have nothing to add.**
1010

1111
## Reviews Required
12-
* [x] Dev
13-
* [ ] Test
14-
* [ ] Tech Author
15-
* [ ] Product Owner
1612

13+
- [x] Dev
14+
- [ ] Test
15+
- [ ] Tech Author
16+
- [ ] Product Owner
1717

1818
## Review Checklist
19+
1920
:information_source: This section is to be filled in by the **reviewer**.
2021

21-
* [ ] I have reviewed the changes in this PR and they fill all or part of the acceptance criteria of the ticket, and the code is in a mergeable state.
22-
* [ ] If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work.
23-
* [ ] I have ensured the changelog has been updated by the submitter, if necessary.
22+
- [ ] I have reviewed the changes in this PR and they fill all or part of the acceptance criteria of the ticket, and the code is in a mergeable state.
23+
- [ ] If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work.
24+
- [ ] I have ensured the changelog has been updated by the submitter, if necessary.

.github/workflows/create-release-tag.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v5
1414
with:
15-
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
15+
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
1616

1717
- name: Install Python 3.9
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@v6
1919
with:
2020
python-version: 3.9
2121

2222
- name: Upgrade python pip
23-
run: python -m pip install --upgrade pip
23+
run: python -m pip install --upgrade pip
2424

2525
- name: Install git
2626
run: pip install gitpython

.github/workflows/deploy-backend.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ jobs:
132132
if: ${{ inputs.environment == 'dev' && inputs.create_mns_subscription }}
133133
run: pip install poetry==2.1.4
134134

135-
- uses: actions/setup-python@v5
135+
- uses: actions/setup-python@v6
136136
if: ${{ inputs.environment == 'dev' && inputs.create_mns_subscription }}
137137
with:
138138
python-version: 3.11
139-
cache: 'poetry'
139+
cache: "poetry"
140140

141141
- name: Create MNS Subscription
142142
if: ${{ inputs.environment == 'dev' && inputs.create_mns_subscription }}
143-
working-directory: './lambdas/mns_subscription'
143+
working-directory: "./lambdas/mns_subscription"
144144
env:
145145
APIGEE_ENVIRONMENT: ${{ inputs.apigee_environment }}
146146
SQS_ARN: ${{ env.ID_SYNC_QUEUE_ARN }}

.github/workflows/pr-teardown.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
permissions:
2424
id-token: write
2525
contents: read
26-
26+
2727
steps:
2828
- name: Connect to AWS
2929
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Checkout
3939
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
40-
40+
4141
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
4242
with:
4343
terraform_version: "1.12.2"
@@ -52,13 +52,13 @@ jobs:
5252
- name: Install poetry
5353
run: pip install poetry==2.1.4
5454

55-
- uses: actions/setup-python@v5
55+
- uses: actions/setup-python@v6
5656
with:
5757
python-version: 3.11
58-
cache: 'poetry'
58+
cache: "poetry"
5959

6060
- name: Unsubscribe MNS
61-
working-directory: './lambdas/mns_subscription'
61+
working-directory: "./lambdas/mns_subscription"
6262
env:
6363
SQS_ARN: ${{ env.ID_SYNC_QUEUE_ARN }}
6464
run: |

.github/workflows/quality-checks.yml

Lines changed: 57 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,82 @@ env:
1212
LAMBDA_PATH: ${{ github.workspace }}/lambdas
1313

1414
jobs:
15-
lint:
16-
name: Lint specification and Python projects
15+
lint-specification:
16+
name: Lint specification
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
21+
22+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
23+
with:
24+
node-version: "23.11.0"
25+
cache: "npm"
26+
27+
- name: Install linting dependencies
28+
run: make install
29+
30+
- name: Lint
31+
run: make lint
32+
33+
- name: Check formatting
34+
run: make format-check
35+
36+
lint-python:
37+
name: Lint Python projects
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2142

2243
- name: Install poetry
2344
run: pip install poetry==2.1.4
2445

25-
# Base linting requires 3.8 due to APIM package dependencies. See root README for details under linting.
26-
# Consider upgrading this and poetry deps if we move away from Azure DevOps to using the Proxygen tool.
27-
- uses: actions/setup-python@v5
46+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
2847
with:
29-
python-version: 3.8
30-
cache: 'poetry'
31-
32-
- uses: actions/setup-node@v5
33-
with:
34-
node-version: '23.11.0'
35-
cache: 'npm'
48+
python-version: 3.11
49+
cache: "poetry"
3650

3751
- name: Install linting dependencies
38-
run: make install-node && poetry install --no-root
52+
run: poetry install --no-root
53+
working-directory: quality_checks
3954

4055
- name: Lint
41-
run: make lint
56+
run: poetry run make lint
57+
working-directory: quality_checks
58+
59+
- name: Check formatting
60+
run: poetry run make format-check
61+
working-directory: quality_checks
62+
63+
lint-terraform:
64+
name: Lint Terraform projects
65+
runs-on: ubuntu-latest
66+
67+
steps:
68+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
69+
70+
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
71+
with:
72+
terraform_version: "1.12.2"
73+
74+
- name: Check formatting
75+
run: terraform fmt -check -recursive
4276

4377
testcoverage_and_sonarcloud:
4478
name: Test Coverage and SonarCloud
4579
runs-on: ubuntu-latest
4680

4781
steps:
48-
- uses: actions/checkout@v5
82+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
4983

5084
- name: Install poetry
5185
run: pip install poetry==2.1.4
5286

53-
- uses: actions/setup-python@v5
87+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
5488
with:
5589
python-version: 3.11
56-
cache: 'poetry'
90+
cache: "poetry"
5791

5892
- name: Set up AWS credentials
5993
env:
@@ -110,7 +144,7 @@ jobs:
110144
working-directory: delta_backend
111145
id: delta
112146
env:
113-
PYTHONPATH: delta_backend/src:delta_backend/tests
147+
PYTHONPATH: delta_backend/src:delta_backend/tests
114148
continue-on-error: true
115149
run: |
116150
poetry install
@@ -141,12 +175,12 @@ jobs:
141175
working-directory: lambdas/ack_backend
142176
id: acklambda
143177
env:
144-
PYTHONPATH: ${{ env.LAMBDA_PATH }}/ack_backend/src:${{ github.workspace }}/ack_backend/tests
178+
PYTHONPATH: ${{ env.LAMBDA_PATH }}/ack_backend/src:tests:${{ env.SHARED_PATH }}/src
145179
continue-on-error: true
146180
run: |
147-
poetry install
148-
poetry run coverage run --source=src -m unittest discover || echo "ack-lambda tests failed" >> ../../failed_tests.txt
149-
poetry run coverage xml -o ../../ack-lambda-coverage.xml
181+
poetry install
182+
poetry run coverage run --source=src -m unittest discover || echo "ack-lambda tests failed" >> ../../failed_tests.txt
183+
poetry run coverage xml -o ../../ack-lambda-coverage.xml
150184
151185
- name: Run unittest with coverage-mns-subscription
152186
working-directory: lambdas/mns_subscription

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

0 commit comments

Comments
 (0)