Skip to content

Commit fc35d10

Browse files
authored
Merge pull request #6001 from nhsuk/next
Version 6.18.0
2 parents 7f60997 + 9aa50e4 commit fc35d10

274 files changed

Lines changed: 4201 additions & 1266 deletions

File tree

Some content is hidden

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

.github/workflows/build-and-push-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
ops-build-needed: ${{ steps.check-dev-image.outputs.ops-build-needed || steps.check-prod-image.outputs.ops-build-needed }}
3838
steps:
3939
- name: Configure AWS Dev Credentials
40-
uses: aws-actions/configure-aws-credentials@v5
40+
uses: aws-actions/configure-aws-credentials@v6
4141
with:
4242
role-to-assume: arn:aws:iam::393416225559:role/GithubDeployECSService
4343
aws-region: eu-west-2
@@ -52,7 +52,7 @@ jobs:
5252
fi
5353
- name: Configure AWS Production credentials
5454
if: env.PUSH_IMAGE_TO_PRODUCTION == 'true'
55-
uses: aws-actions/configure-aws-credentials@v5
55+
uses: aws-actions/configure-aws-credentials@v6
5656
with:
5757
role-to-assume: arn:aws:iam::820242920762:role/GithubDeployECSService
5858
aws-region: eu-west-2
@@ -127,7 +127,7 @@ jobs:
127127
with:
128128
name: ${{ matrix.image_type }}-image
129129
- name: Configure AWS Credentials
130-
uses: aws-actions/configure-aws-credentials@v5
130+
uses: aws-actions/configure-aws-credentials@v6
131131
with:
132132
role-to-assume: ${{ matrix.aws-role }}
133133
aws-region: eu-west-2

.github/workflows/create_dockerized_db.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
bin/rails feature_flags:enable_for_development
6666
bin/mavis gias import
6767
- name: Configure AWS Credentials
68-
uses: aws-actions/configure-aws-credentials@v5
68+
uses: aws-actions/configure-aws-credentials@v6
6969
with:
7070
role-to-assume: arn:aws:iam::393416225559:role/GitHubAssuranceTestRole
7171
aws-region: eu-west-2

.github/workflows/data-replication-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
with:
9595
ref: ${{ env.git_ref_to_deploy }}
9696
- name: Configure AWS Credentials
97-
uses: aws-actions/configure-aws-credentials@v5
97+
uses: aws-actions/configure-aws-credentials@v6
9898
with:
9999
role-to-assume: ${{ env.aws_role }}
100100
aws-region: eu-west-2
@@ -178,7 +178,7 @@ jobs:
178178
id-token: write
179179
steps:
180180
- name: Configure AWS Credentials
181-
uses: aws-actions/configure-aws-credentials@v5
181+
uses: aws-actions/configure-aws-credentials@v6
182182
with:
183183
role-to-assume: ${{ env.aws_role }}
184184
aws-region: eu-west-2

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
ref: ${{ needs.determine-git-sha.outputs.git-sha }}
109109
- name: Configure AWS Credentials
110-
uses: aws-actions/configure-aws-credentials@v5
110+
uses: aws-actions/configure-aws-credentials@v6
111111
with:
112112
role-to-assume: arn:aws:iam::${{ env.aws_account_id }}:role/GithubDeployECSService
113113
aws-region: eu-west-2
@@ -181,7 +181,7 @@ jobs:
181181
- name: Checkout code
182182
uses: actions/checkout@v6
183183
- name: Configure AWS Credentials
184-
uses: aws-actions/configure-aws-credentials@v5
184+
uses: aws-actions/configure-aws-credentials@v6
185185
with:
186186
role-to-assume: arn:aws:iam::${{ env.aws_account_id }}:role/GithubDeployECSService
187187
aws-region: eu-west-2
@@ -308,7 +308,7 @@ jobs:
308308
service: ${{ inputs.server_types == 'all' && fromJSON('["web", "sidekiq", "ops"]') || fromJSON(format('["{0}"]', inputs.server_types)) }}
309309
steps:
310310
- name: Configure AWS Credentials
311-
uses: aws-actions/configure-aws-credentials@v5
311+
uses: aws-actions/configure-aws-credentials@v6
312312
with:
313313
role-to-assume: arn:aws:iam::${{ env.aws_account_id }}:role/GithubDeployECSService
314314
aws-region: eu-west-2

.github/workflows/end-to-end-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
application-image-git-ref: ${{ steps.check-image.outputs.GIT_REF_SHA }}
4646
steps:
4747
- name: Configure AWS Credentials
48-
uses: aws-actions/configure-aws-credentials@v5
48+
uses: aws-actions/configure-aws-credentials@v6
4949
with:
5050
role-to-assume: arn:aws:iam::393416225559:role/GitHubAssuranceTestRole
5151
aws-region: eu-west-2
@@ -80,7 +80,7 @@ jobs:
8080
ref: ${{ needs.check-development-image-presence.outputs.application-image-git-ref }}
8181
repository: nhsuk/manage-vaccinations-in-schools
8282
- name: Configure AWS Credentials
83-
uses: aws-actions/configure-aws-credentials@v5
83+
uses: aws-actions/configure-aws-credentials@v6
8484
with:
8585
role-to-assume: arn:aws:iam::393416225559:role/GitHubAssuranceTestRole
8686
aws-region: eu-west-2
@@ -105,7 +105,7 @@ jobs:
105105
db_git_ref_sha: ${{ steps.check-image.outputs.GIT_REF_SHA }}
106106
steps:
107107
- name: Configure AWS Credentials
108-
uses: aws-actions/configure-aws-credentials@v5
108+
uses: aws-actions/configure-aws-credentials@v6
109109
with:
110110
role-to-assume: arn:aws:iam::393416225559:role/GitHubAssuranceTestRole
111111
aws-region: eu-west-2
@@ -155,7 +155,7 @@ jobs:
155155
run_task_arn: ${{ steps.run-task.outputs.run-task-arn }}
156156
steps:
157157
- name: Configure AWS credentials
158-
uses: aws-actions/configure-aws-credentials@v5
158+
uses: aws-actions/configure-aws-credentials@v6
159159
with:
160160
role-to-assume: arn:aws:iam::393416225559:role/GitHubAssuranceTestRole
161161
aws-region: eu-west-2
@@ -214,7 +214,7 @@ jobs:
214214
container_ip: ${{ steps.compile-outputs.outputs.container_ip }}
215215
steps:
216216
- name: Configure AWS credentials
217-
uses: aws-actions/configure-aws-credentials@v5
217+
uses: aws-actions/configure-aws-credentials@v6
218218
with:
219219
role-to-assume: arn:aws:iam::393416225559:role/GitHubAssuranceTestRole
220220
aws-region: eu-west-2
@@ -339,7 +339,7 @@ jobs:
339339
id-token: write
340340
steps:
341341
- name: Configure AWS credentials
342-
uses: aws-actions/configure-aws-credentials@v5
342+
uses: aws-actions/configure-aws-credentials@v6
343343
with:
344344
role-to-assume: arn:aws:iam::393416225559:role/GitHubAssuranceTestRole
345345
aws-region: eu-west-2

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ gem "flipper"
4040
gem "flipper-active_record"
4141
gem "flipper-ui"
4242
gem "govuk-components"
43-
gem "govuk_design_system_formbuilder"
43+
gem "govuk_design_system_formbuilder",
44+
github: "x-govuk/govuk-form-builder",
45+
ref: "main" #TODO: replace with version > 5.13.0 when released
4446
gem "govuk_markdown"
4547
gem "indefinite_article"
4648
gem "jsonb_accessor"

Gemfile.lock

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ GIT
2222
activerecord (>= 5.2, < 8.2)
2323
activesupport (>= 5.2, < 8.2)
2424

25+
GIT
26+
remote: https://github.com/x-govuk/govuk-form-builder.git
27+
revision: 8fb16627dec7d2786e481029e1645a85e4d7df15
28+
ref: main
29+
specs:
30+
govuk_design_system_formbuilder (5.13.0)
31+
actionview (>= 6.1)
32+
activemodel (>= 6.1)
33+
activesupport (>= 6.1)
34+
html-attributes-utils (~> 1)
35+
2536
GEM
2637
remote: https://rubygems.org/
2738
specs:
@@ -111,7 +122,7 @@ GEM
111122
public_suffix (>= 2.0.2, < 8.0)
112123
aes_key_wrap (1.1.0)
113124
amazing_print (2.0.0)
114-
annotaterb (4.20.0)
125+
annotaterb (4.21.0)
115126
activerecord (>= 6.0.0)
116127
activesupport (>= 6.0.0)
117128
array_enum (1.6.0)
@@ -165,9 +176,9 @@ GEM
165176
bigdecimal (4.0.1)
166177
bindata (2.5.1)
167178
bindex (0.8.1)
168-
bootsnap (1.21.1)
179+
bootsnap (1.22.0)
169180
msgpack (~> 1.2)
170-
brakeman (8.0.0)
181+
brakeman (8.0.2)
171182
racc
172183
builder (3.3.0)
173184
capybara (3.40.0)
@@ -289,11 +300,6 @@ GEM
289300
html-attributes-utils (~> 1.0.0, >= 1.0.0)
290301
pagy (>= 6, < 10)
291302
view_component (>= 4.0, < 4.2)
292-
govuk_design_system_formbuilder (5.13.0)
293-
actionview (>= 6.1)
294-
activemodel (>= 6.1)
295-
activesupport (>= 6.1)
296-
html-attributes-utils (~> 1)
297303
govuk_markdown (2.0.3)
298304
activesupport
299305
redcarpet
@@ -452,7 +458,7 @@ GEM
452458
racc
453459
pg (1.6.3-arm64-darwin)
454460
pg (1.6.3-x86_64-linux)
455-
phonelib (0.10.15)
461+
phonelib (0.10.16)
456462
pp (0.6.3)
457463
prettyprint
458464
prettier_print (1.2.1)
@@ -734,8 +740,8 @@ GEM
734740
unicode-display_width (~> 3.1)
735741
temple (0.10.4)
736742
thor (1.5.0)
737-
thruster (0.1.17-arm64-darwin)
738-
thruster (0.1.17-x86_64-linux)
743+
thruster (0.1.18-arm64-darwin)
744+
thruster (0.1.18-x86_64-linux)
739745
tilt (2.7.0)
740746
timeout (0.6.0)
741747
tsort (0.2.0)
@@ -840,7 +846,7 @@ DEPENDENCIES
840846
flipper-active_record
841847
flipper-ui
842848
govuk-components
843-
govuk_design_system_formbuilder
849+
govuk_design_system_formbuilder!
844850
govuk_markdown
845851
hotwire-livereload
846852
indefinite_article

app/components/app_child_summary_component.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ def call
6363
row.with_key { "Date of birth" }
6464
row.with_value { format_date_of_birth }
6565
end
66+
if @child.ethnic_group.present?
67+
summary_list.with_row do |row|
68+
row.with_key { "Ethnicity" }
69+
row.with_value { format_ethnic_group_and_background(@child) }
70+
if (href = @change_links[:ethnicity])
71+
row.with_action(
72+
text: "Change",
73+
href:,
74+
visually_hidden_text: "Ethnicity"
75+
)
76+
end
77+
end
78+
end
6679
if @child.try(:deceased?)
6780
summary_list.with_row do |row|
6881
row.with_key { "Date of death" }
@@ -156,6 +169,7 @@ def call
156169
private
157170

158171
delegate :format_address_multi_line,
172+
:format_ethnic_group_and_background,
159173
:format_parent_with_relationship,
160174
:govuk_button_to,
161175
:govuk_summary_list,

app/components/app_consent_patient_summary_component.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ def call
1717
row.with_value { consent_form_or_patient.date_of_birth.to_fs(:long) }
1818
end
1919

20+
if consent_form_or_patient.ethnic_group.present?
21+
summary_list.with_row do |row|
22+
row.with_key { "Ethnicity" }
23+
row.with_value do
24+
format_ethnic_group_and_background(consent_form_or_patient)
25+
end
26+
end
27+
end
28+
2029
unless restricted?
2130
summary_list.with_row do |row|
2231
row.with_key { "Home address" }
@@ -34,6 +43,7 @@ def call
3443
private
3544

3645
delegate :format_address_multi_line,
46+
:format_ethnic_group_and_background,
3747
:govuk_summary_list,
3848
:patient_school,
3949
to: :helpers

app/components/app_import_errors_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class AppImportErrorsComponent < ViewComponent::Base
3535
<% end %>
3636
ERB
3737

38-
def initialize(errors: nil, title: "Records could not be imported")
38+
def initialize(errors: nil, title: "Upload failed")
3939
@errors = errors
4040
@title = title
4141
end

0 commit comments

Comments
 (0)