Skip to content

Commit b6a9ad5

Browse files
authored
Merge pull request #4591 from nhsuk/next
Version 4.1.1
2 parents 9497b76 + 7aeacd6 commit b6a9ad5

96 files changed

Lines changed: 776 additions & 641 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.

.tool-versions

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
awscli 2.27.46
2+
hk 1.1.2
13
nodejs 22.15.0
4+
pkl 0.28.1
25
postgres 17.2
6+
redis 8.2.1
37
ruby 3.4.3
4-
awscli 2.27.46
58
terraform 1.11.4
69
tflint 0.55.1
7-
pkl 0.28.1
8-
hk 1.1.2

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ gem "sentry-rails"
6262
gem "sentry-ruby"
6363
gem "sentry-sidekiq"
6464
gem "sidekiq"
65+
gem "sidekiq-scheduler"
6566
gem "sidekiq-throttled"
6667
gem "splunk-sdk-ruby"
6768
gem "table_tennis"
@@ -116,6 +117,7 @@ group :test do
116117
gem "its"
117118
gem "rspec"
118119
gem "rspec-html-matchers"
120+
gem "rspec-sidekiq"
119121
gem "rubyXL"
120122
gem "shoulda-matchers"
121123
gem "simplecov", require: false

Gemfile.lock

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ GEM
222222
erubi (1.13.1)
223223
et-orbi (1.2.11)
224224
tzinfo
225-
factory_bot (6.5.4)
225+
factory_bot (6.5.5)
226226
activesupport (>= 6.1.0)
227227
factory_bot_instruments (1.2.0)
228228
activerecord (>= 4.0)
229229
factory_bot (>= 4)
230-
factory_bot_rails (6.5.0)
230+
factory_bot_rails (6.5.1)
231231
factory_bot (~> 6.5)
232232
railties (>= 6.1.0)
233233
faker (3.5.2)
@@ -454,7 +454,7 @@ GEM
454454
date
455455
stringio
456456
public_suffix (6.0.2)
457-
puma (7.0.0)
457+
puma (7.0.2)
458458
nio4r (~> 2.0)
459459
pundit (2.5.0)
460460
activesupport (>= 3.0.0)
@@ -559,6 +559,11 @@ GEM
559559
rspec-expectations (~> 3.13)
560560
rspec-mocks (~> 3.13)
561561
rspec-support (~> 3.13)
562+
rspec-sidekiq (5.2.0)
563+
rspec-core (~> 3.0)
564+
rspec-expectations (~> 3.0)
565+
rspec-mocks (~> 3.0)
566+
sidekiq (>= 5, < 9)
562567
rspec-support (3.13.4)
563568
rubocop (1.79.2)
564569
json (~> 2.3)
@@ -604,8 +609,10 @@ GEM
604609
rubyzip (>= 1.3.0)
605610
rubyntlm (0.6.5)
606611
base64
607-
rubyzip (3.0.2)
612+
rubyzip (3.1.0)
608613
rufo (0.18.1)
614+
rufus-scheduler (3.9.2)
615+
fugit (~> 1.1, >= 1.11.1)
609616
sanitize (7.0.0)
610617
crass (~> 1.0.2)
611618
nokogiri (>= 1.16.8)
@@ -629,6 +636,9 @@ GEM
629636
logger (>= 1.6.2)
630637
rack (>= 3.1.0)
631638
redis-client (>= 0.23.2)
639+
sidekiq-scheduler (6.0.1)
640+
rufus-scheduler (~> 3.2)
641+
sidekiq (>= 7.3, < 9)
632642
sidekiq-throttled (2.0.0)
633643
concurrent-ruby (>= 1.2.0)
634644
redis-prescription (~> 2.2)
@@ -817,6 +827,7 @@ DEPENDENCIES
817827
rspec
818828
rspec-html-matchers
819829
rspec-rails
830+
rspec-sidekiq
820831
rubocop-govuk
821832
ruby-prof
822833
ruby-progressbar
@@ -828,6 +839,7 @@ DEPENDENCIES
828839
sentry-sidekiq
829840
shoulda-matchers
830841
sidekiq
842+
sidekiq-scheduler
831843
sidekiq-throttled
832844
simplecov
833845
solargraph

Procfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
web: bin/rails server
12
release: bin/rails db:prepare:ignore_concurrent_migration_exceptions
3+
sidekiq: bin/sidekiq

Procfile.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
web: unset PORT && bin/rails server
2+
sidekiq: bin/sidekiq
23
css: yarn build:css --watch
34
js: yarn build --watch
5+
redis: redis-server

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ This project depends on:
2323
- [Ruby on Rails](https://rubyonrails.org/)
2424
- [NodeJS](https://nodejs.org/)
2525
- [Yarn](https://yarnpkg.com/)
26-
- [Postgres](https://www.postgresql.org/)
26+
- [PostgreSQL](https://www.postgresql.org/)
27+
- [Redis](https://redis.io/) or [Valkey](https://valkey.io/)
2728

2829
The instructions below assume you are using `mise` to manage the necessary
2930
versions of the above.

app/components/app_vaccination_record_summary_component.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ def call
258258
end
259259

260260
if @vaccination_record.respond_to?(:sync_status) &&
261-
Flipper.enabled?(:immunisations_fhir_api_integration)
261+
Flipper.enabled?(:imms_api_sync_job) &&
262+
Flipper.enabled?(:imms_api_integration)
262263
summary_list.with_row do |row|
263264
row.with_key { "Synced with NHS England?" }
264265
row.with_value do

app/controllers/api/testing/teams_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def destroy
3737
# In local dev we can end up with NotifyLogEntries without a patient
3838
log_destroy(NotifyLogEntry.where(patient_id: nil))
3939
log_destroy(NotifyLogEntry.where(patient_id: patient_ids))
40+
log_destroy(PatientChangeset.where(patient_id: patient_ids))
4041
log_destroy(PatientSession.where(patient_id: patient_ids))
42+
log_destroy(PatientSpecificDirection.where(patient_id: patient_ids))
4143
log_destroy(PDSSearchResult.where(patient_id: patient_ids))
4244
log_destroy(PreScreening.where(patient_id: patient_ids))
4345
log_destroy(SchoolMove.where(patient_id: patient_ids))

app/controllers/sessions/register_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Sessions::RegisterController < ApplicationController
1111
layout "full"
1212

1313
def show
14-
@statuses = PatientSession::RegistrationStatus.statuses.keys
14+
@statuses = Patient::RegistrationStatus.statuses.keys
1515

1616
scope =
1717
@session.patient_sessions.includes_programmes.includes(

app/forms/vaccinate_form.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def delivery_site=(value)
6262

6363
def delivery_site
6464
if vaccine_method.present?
65+
return nil if vaccine_method == "none"
66+
6567
available_delivery_sites =
6668
Vaccine::AVAILABLE_DELIVERY_SITES.fetch(vaccine_method)
6769

0 commit comments

Comments
 (0)