Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
dcb398d
Update hint text on UI for uploading vaccs records
murugapl Jan 15, 2026
4cd9732
Allow bulk upload users to edit vaccinator
alistair-white-horne-tng Jan 7, 2026
304308f
Allow bulk upload users to edit dose sequence
alistair-white-horne-tng Jan 7, 2026
5290919
Disallow bulk upload users from changing `outcome`
alistair-white-horne-tng Jan 14, 2026
a491ad7
Fix SNOMED procedure term for flu vaccinations
benilovj Jan 16, 2026
48d5326
Update SNOMED display term for flu vaccination across multiple JSON f…
benilovj Jan 16, 2026
bcb49df
Show GIAS year groups and other sites in CLI Schools::Show
murugapl Jan 16, 2026
64c898a
Create a basic setup for a WAF
TheOneFromNorway Jan 15, 2026
b5f58d4
Update permissions to allow for deploying WAF
TheOneFromNorway Jan 16, 2026
166397f
Remove `has_triage_status` scope
thomasleese Dec 18, 2025
d5893ee
Remove `has_vaccination_status` scope
thomasleese Dec 19, 2025
c83c5b6
Remove `has_consent_status` scope
thomasleese Dec 19, 2025
2260acd
Update `has_vaccine_criteria` scope
thomasleese Jan 7, 2026
0004471
Merge pull request #5615 from nhsuk/remove-patient-status-scopes
thomasleese Jan 16, 2026
dd38f1d
Use `safe_join` instead of `join(...).html_safe`
thomasleese Jan 16, 2026
8d09914
Merge pull request #5788 from nhsuk/safe-join-parents
thomasleese Jan 16, 2026
446ba7f
Bump @hotwired/turbo-rails from 8.0.20 to 8.0.21
dependabot[bot] Jan 16, 2026
3e6808e
Bump turbo-rails from 2.0.20 to 2.0.21
dependabot[bot] Jan 16, 2026
f545cd9
Bump aws-sdk-rds from 1.305.0 to 1.306.0
dependabot[bot] Jan 16, 2026
dedb40e
Bump aws-sdk-iam from 1.139.0 to 1.140.0
dependabot[bot] Jan 16, 2026
c7bb596
Bump aws-sdk-ec2 from 1.590.0 to 1.591.0
dependabot[bot] Jan 16, 2026
7b15c14
Merge pull request #5670 from nhsuk/alistair/national-reporting-edit-…
mikejamesthompson Jan 18, 2026
bd13ca2
Merge pull request #5672 from nhsuk/alistair/national-reporting-edit-…
mikejamesthompson Jan 18, 2026
966979b
Merge pull request #5756 from nhsuk/alistair/national-reporting-edit-…
mikejamesthompson Jan 18, 2026
afd9936
Merge pull request #5795 from nhsuk/dependabot/bundler/next/aws-sdk-e…
thomasleese Jan 19, 2026
8d1909d
Merge pull request #5794 from nhsuk/dependabot/bundler/next/aws-sdk-i…
thomasleese Jan 19, 2026
7d5b07e
Merge pull request #5793 from nhsuk/dependabot/bundler/next/aws-sdk-r…
thomasleese Jan 19, 2026
519abb6
Merge pull request #5792 from nhsuk/dependabot/bundler/next/turbo-rai…
thomasleese Jan 19, 2026
e735d1c
Merge pull request #5790 from nhsuk/dependabot/npm_and_yarn/next/hotw…
thomasleese Jan 19, 2026
4aa1f70
Bump aws-sdk-accessanalyzer from 1.84.0 to 1.85.0
dependabot[bot] Jan 19, 2026
130bb6d
Merge pull request #5791 from nhsuk/dependabot/bundler/next/aws-sdk-a…
thomasleese Jan 19, 2026
6e42319
Add `joins_teams_on_performed_ods_code` scope
thomasleese Jan 14, 2026
b0107c0
Add `PatientTeamUpdater`
thomasleese Jan 14, 2026
62b4586
Add `patient_team:update` tasks
thomasleese Jan 15, 2026
7c5b9d7
Install `sidekiq-unique-jobs`
thomasleese Jan 15, 2026
5e9a32c
Configure `sidekiq-unique-jobs`
thomasleese Jan 15, 2026
2538b60
Add `PatientTeamUpdaterJob`
thomasleese Jan 15, 2026
f979b91
Replace usage of `SyncPatientTeamJob`
thomasleese Jan 15, 2026
09830c2
Remove `update_all_and_sync_patient_teams`
thomasleese Jan 15, 2026
04846da
Remove `sync_patient_teams_table_on_patient_ids`
thomasleese Jan 15, 2026
3f2dc44
Remove `insert_patient_teams_relationships`
thomasleese Jan 15, 2026
653e593
Replace `ContributesToPatientTeams`
thomasleese Jan 15, 2026
2a6c3d7
Optimise `PatientTeamUpdater`
thomasleese Jan 16, 2026
be640e6
Fix "Incorrect vaccine given" warning when editing MMRV records
jhenderson Jan 16, 2026
ec483cd
Merge pull request #5789 from nhsuk/fix-mmrv-incorrect-vaccine-warning
jhenderson Jan 19, 2026
9907786
Merge pull request #5766 from nhsuk/update-vaccs-upload-content
murugapl Jan 19, 2026
3a9edff
Merge pull request #5781 from nhsuk/fix-code-term-discrepancy
mikejamesthompson Jan 19, 2026
13b3ffa
Add CLI Subteams::List command
murugapl Jan 16, 2026
d4276f7
Merge pull request #5785 from nhsuk/improve-schools-show
murugapl Jan 19, 2026
e737025
Merge pull request #5733 from nhsuk/patient-team-updater
thomasleese Jan 19, 2026
1e8de60
Remove `programme_types` from NotifyLogEntry
jhenderson Jan 15, 2026
631e98b
Remove data migration for backfilling `NotifyLogEntry::Programme`
jhenderson Jan 19, 2026
2452f9b
Enable creation of school sites through onboarding configuration
murugapl Jan 12, 2026
f734dc7
Add documentation for `PatientTeamUpdater`
thomasleese Jan 19, 2026
4d6145e
Merge pull request #5726 from nhsuk/cli-onboard-sites
murugapl Jan 19, 2026
abe534c
Merge pull request #5799 from nhsuk/patient-team-docs
thomasleese Jan 19, 2026
196daf4
Merge pull request #5784 from nhsuk/cli-subteams-list
murugapl Jan 19, 2026
f73eff3
Merge pull request #5730 from nhsuk/fix-correct-mmrv-log-entries-part-3
jhenderson Jan 19, 2026
4ed54bc
Realign SNOMED procedure terms post-rationalisation
benilovj Jan 19, 2026
037c930
Fix reporting api root URL
mikejamesthompson Jan 19, 2026
42e6c6a
Merge pull request #5800 from nhsuk/fix-code-term-discrepancy
mikejamesthompson Jan 19, 2026
fc77642
Fix flaky CLI subteams list spec
murugapl Jan 19, 2026
cdf5d93
Prevent duplicate triage records when editing MMR/MMRV vaccinations
jhenderson Jan 19, 2026
aeb4e0a
Merge pull request #5773 from nhsuk/MAV-583_create_WAF_with_basic_pro…
TheOneFromNorway Jan 19, 2026
0b20ff1
Merge pull request #5804 from nhsuk/bug-mmrv-vaccination-record-edit-…
jhenderson Jan 19, 2026
e5c6560
Merge pull request #5803 from nhsuk/fix-cli-subteams-flaky-test
murugapl Jan 19, 2026
5929c08
Allow bulk upload users to edit location
alistair-white-horne-tng Jan 14, 2026
ff25540
Refactor edit vaccination record tests
alistair-white-horne-tng Jan 15, 2026
8c0fe87
Tweak content for bulk upload users when editing notes
alistair-white-horne-tng Jan 15, 2026
fe2affc
Merge pull request #5769 from nhsuk/alistair/national-reporting-edit-…
alistair-white-horne-tng Jan 19, 2026
bc9ed13
Merge pull request #5768 from nhsuk/alistair/national-reporting-edit-…
alistair-white-horne-tng Jan 19, 2026
dad0e68
Assume notify_parents is true if unset
misaka Jan 13, 2026
f769de2
Send national reporting vaccinations to imms api
misaka Jan 12, 2026
961ce7d
Remove unused methods in spec
misaka Jan 13, 2026
018e3e2
Rename syncable_to_nhs_immunisations_api to ...
misaka Jan 12, 2026
80cb3e4
Add sync_national_reporting_to_imms_api feature ...
misaka Jan 13, 2026
6064b58
Set identifier for national reporting
misaka Jan 19, 2026
b69b151
Merge pull request #5742 from nhsuk/sync-national-reporting-vaccinati…
misaka Jan 19, 2026
4cd81de
Prevent onboarding schools already assigned to other teams
murugapl Jan 19, 2026
7a082d5
Bump aws-sdk-ecr from 1.118.0 to 1.119.0
dependabot[bot] Jan 19, 2026
7455bea
Bump nhsuk-frontend from 10.3.0 to 10.3.1
dependabot[bot] Jan 19, 2026
083b5eb
Bump solargraph from 0.58.1 to 0.58.2
dependabot[bot] Jan 19, 2026
0786bcc
Bump aws-sdk-s3 from 1.211.0 to 1.212.0
dependabot[bot] Jan 19, 2026
a1d956d
Merge pull request #5809 from nhsuk/dependabot/bundler/next/aws-sdk-e…
thomasleese Jan 20, 2026
50409e8
Merge pull request #5810 from nhsuk/dependabot/npm_and_yarn/next/nhsu…
thomasleese Jan 20, 2026
d8e48d7
Merge pull request #5811 from nhsuk/dependabot/bundler/next/solargrap…
thomasleese Jan 20, 2026
430c5eb
Merge pull request #5812 from nhsuk/dependabot/bundler/next/aws-sdk-s…
thomasleese Jan 20, 2026
da1395f
Track location on programme status
thomasleese Jan 19, 2026
30c7085
Merge pull request #5807 from nhsuk/add-location-to-programme-status
thomasleese Jan 20, 2026
3134951
Merge pull request #5808 from nhsuk/fix-cli-onboard-sites-many-teams
murugapl Jan 20, 2026
57a6963
Merge pull request #5801 from nhsuk/fix-reporting-root-url
mikejamesthompson Jan 20, 2026
b835450
Change ODS code for support users
misaka Jan 20, 2026
8088eaa
Merge pull request #5815 from nhsuk/change-ods-code-mav-2756
misaka Jan 20, 2026
173d150
Document school sites in onboarding configuration
murugapl Jan 20, 2026
3acad6e
Merge pull request #5816 from nhsuk/amend-onboarding-docs
murugapl Jan 20, 2026
e2e5441
Hide "Change" vaccinator and dose sequence buttons for PoC users
alistair-white-horne-tng Jan 20, 2026
4755dae
Merge pull request #5817 from nhsuk/alistair/national-reporting-edit-…
alistair-white-horne-tng Jan 20, 2026
54079be
Filter schools when editing location on NR records
alistair-white-horne-tng Jan 20, 2026
91b2597
Merge pull request #5818 from nhsuk/alistair/national-reporting-edit-…
alistair-white-horne-tng Jan 20, 2026
c4e8cd0
Rename functional tests to end-to-end tests
jf-x-dev Jan 20, 2026
0e4a15f
Don't show programme status row if there are no statuses
alistair-white-horne-tng Jan 20, 2026
1dedc31
Merge pull request #5820 from nhsuk/rename-functional-to-e2e
jf-x-dev Jan 20, 2026
8d03d00
Merge pull request #5819 from nhsuk/alistair/national-reporting-fix-s…
alistair-white-horne-tng Jan 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ jobs:
fi
env:
BRANCH_TO_CHECK: ${{ github.head_ref }}
call-functional-tests:
call-end-to-end-tests:
needs: [ launch-dockerized-devimage, wait-for-task-stability, find-correct-test-branch ]
if: ${{ !cancelled() && needs.launch-dockerized-devimage.result == 'success' && needs.wait-for-task-stability.result == 'success'}}
uses: NHSDigital/manage-vaccinations-in-schools-testing/.github/workflows/functional_selected_device.yaml@main
uses: NHSDigital/manage-vaccinations-in-schools-testing/.github/workflows/end-to-end-tests.yaml@main
permissions:
contents: write
with:
Expand All @@ -343,7 +343,7 @@ jobs:
HTTP_AUTH_TOKEN_FOR_TESTS: ${{ secrets.HTTP_AUTH_TOKEN_FOR_TESTS }}
MAVIS_TESTING_REPO_ACCESS_TOKEN: ${{ secrets.MAVIS_TESTING_REPO_ACCESS_TOKEN }}
stop-docker-environment:
needs: [ call-functional-tests, launch-dockerized-devimage, wait-for-task-stability ]
needs: [ call-end-to-end-tests, launch-dockerized-devimage, wait-for-task-stability ]
if: ${{ always() && needs.launch-dockerized-devimage.result != 'skipped'}}
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ gem "sentry-sidekiq"
gem "sidekiq"
gem "sidekiq-scheduler"
gem "sidekiq-throttled"
gem "sidekiq-unique-jobs"
gem "splunk-sdk-ruby"
gem "table_tennis"
gem "tzinfo-data", platforms: %i[jruby windows]
Expand Down
45 changes: 25 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -136,35 +136,35 @@ GEM
ast (2.4.3)
attr_required (1.0.2)
aws-eventstream (1.4.0)
aws-partitions (1.1205.0)
aws-sdk-accessanalyzer (1.84.0)
aws-sdk-core (~> 3, >= 3.241.3)
aws-partitions (1.1206.0)
aws-sdk-accessanalyzer (1.85.0)
aws-sdk-core (~> 3, >= 3.241.4)
aws-sigv4 (~> 1.5)
aws-sdk-core (3.241.3)
aws-sdk-core (3.241.4)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
base64
bigdecimal
jmespath (~> 1, >= 1.6.1)
logger
aws-sdk-ec2 (1.590.0)
aws-sdk-core (~> 3, >= 3.241.3)
aws-sdk-ec2 (1.591.0)
aws-sdk-core (~> 3, >= 3.241.4)
aws-sigv4 (~> 1.5)
aws-sdk-ecr (1.118.0)
aws-sdk-core (~> 3, >= 3.241.3)
aws-sdk-ecr (1.119.0)
aws-sdk-core (~> 3, >= 3.241.4)
aws-sigv4 (~> 1.5)
aws-sdk-iam (1.139.0)
aws-sdk-core (~> 3, >= 3.241.3)
aws-sdk-iam (1.140.0)
aws-sdk-core (~> 3, >= 3.241.4)
aws-sigv4 (~> 1.5)
aws-sdk-kms (1.120.0)
aws-sdk-core (~> 3, >= 3.241.3)
aws-sdk-kms (1.121.0)
aws-sdk-core (~> 3, >= 3.241.4)
aws-sigv4 (~> 1.5)
aws-sdk-rds (1.305.0)
aws-sdk-core (~> 3, >= 3.241.3)
aws-sdk-rds (1.306.0)
aws-sdk-core (~> 3, >= 3.241.4)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.211.0)
aws-sdk-core (~> 3, >= 3.241.3)
aws-sdk-s3 (1.212.0)
aws-sdk-core (~> 3, >= 3.241.4)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.12.1)
Expand Down Expand Up @@ -355,8 +355,8 @@ GEM
pg (>= 0.18.1)
jwt (3.1.2)
base64
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown (2.5.2)
rexml (>= 3.4.4)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.5)
Expand Down Expand Up @@ -678,13 +678,17 @@ GEM
concurrent-ruby (>= 1.2.0)
redis-prescription (~> 2.2)
sidekiq (>= 8.0)
sidekiq-unique-jobs (8.0.13)
concurrent-ruby (~> 1.0, >= 1.0.5)
sidekiq (>= 7.0.0, < 9.0.0)
thor (>= 1.0, < 3.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
solargraph (0.58.1)
solargraph (0.58.2)
ast (~> 2.4.3)
backport (~> 1.2)
benchmark (~> 0.4)
Expand Down Expand Up @@ -741,7 +745,7 @@ GEM
tilt (2.7.0)
timeout (0.6.0)
tsort (0.2.0)
turbo-rails (2.0.20)
turbo-rails (2.0.21)
actionpack (>= 7.1.0)
railties (>= 7.1.0)
tzinfo (2.0.6)
Expand Down Expand Up @@ -890,6 +894,7 @@ DEPENDENCIES
sidekiq
sidekiq-scheduler
sidekiq-throttled
sidekiq-unique-jobs
simplecov
solargraph
solargraph-rails
Expand Down
4 changes: 2 additions & 2 deletions app/components/app_patient_search_result_card_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ def call
to: :helpers

def programme_status_tag
return if programmes.empty?

status_by_programme =
programmes.each_with_object({}) do |programme, hash|
resolved_status =
Expand All @@ -119,6 +117,8 @@ def programme_status_tag
hash[resolved_status.fetch(:prefix)] = resolved_status
end

return if status_by_programme.empty?

render AppAttachedTagsComponent.new(status_by_programme)
end

Expand Down
8 changes: 4 additions & 4 deletions app/components/app_programme_session_table_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def cohort_count(session:)
end

def no_response_scope(session:)
patients(session:).has_consent_status(
:no_response,
patients(session:).has_programme_status(
"needs_consent_no_response",
programme:,
academic_year:
)
Expand All @@ -38,8 +38,8 @@ def no_response_percentage(session:)

def triage_needed_count(session:)
format_number(
patients(session:).has_triage_status(
:required,
patients(session:).has_programme_status(
"needs_triage",
programme:,
academic_year:
).count
Expand Down
8 changes: 4 additions & 4 deletions app/components/app_session_actions_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def no_consent_response_row

def conflicting_consent_row
count =
patients.has_consent_status(
"conflicts",
patients.has_programme_status(
"has_refusal_consent_conflicts",
programme: programmes,
academic_year:
).count
Expand All @@ -90,8 +90,8 @@ def conflicting_consent_row

def triage_required_row
count =
patients.has_triage_status(
"required",
patients.has_programme_status(
"needs_triage",
programme: programmes,
academic_year:
).count
Expand Down
14 changes: 14 additions & 0 deletions app/components/app_vaccination_record_summary_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ def call
summary_list.with_row do |row|
row.with_key { "Dose number" }
row.with_value { dose_number_value }
if (href = @change_links[:dose_sequence])
row.with_action(
text: "Change",
href:,
visually_hidden_text: "dose number"
)
end
end
end
end
Expand Down Expand Up @@ -218,6 +225,13 @@ def call
summary_list.with_row do |row|
row.with_key { "Vaccinator" }
row.with_value { vaccinator_value }
if (href = @change_links[:vaccinator])
row.with_action(
text: "Change",
visually_hidden_text: "vaccinator",
href:
)
end
end
end

Expand Down
29 changes: 27 additions & 2 deletions app/controllers/draft_vaccination_records_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def update
handle_date_and_time
when :outcome
handle_outcome
when :location
handle_location
when :batch
handle_batch
when :confirm
Expand Down Expand Up @@ -98,6 +100,22 @@ def handle_batch
end
end

def handle_location
if @draft_vaccination_record.bulk_upload_user_and_record?
parsed_location_id =
(
if update_params[:location_id] == "unknown"
nil
else
update_params[:location_id]
end
)
@draft_vaccination_record.location_id = parsed_location_id
@draft_vaccination_record.location_name =
(@draft_vaccination_record.location_id.present? ? nil : "Unknown")
end
end

def handle_confirm
return unless @draft_vaccination_record.save

Expand Down Expand Up @@ -161,6 +179,7 @@ def update_params
date_and_time: %i[performed_at],
delivery: %i[delivery_site delivery_method],
dose: %i[full_dose],
dose_sequence: %i[dose_sequence],
identity: %i[
identity_check_confirmed_by_patient
identity_check_confirmed_by_other_name
Expand All @@ -169,7 +188,8 @@ def update_params
location: %i[location_id],
notes: %i[notes],
outcome: %i[outcome],
supplier: %i[supplied_by_user_id]
supplier: %i[supplied_by_user_id],
vaccinator: %i[performed_by_given_name performed_by_family_name]
}.fetch(current_step)

params
Expand Down Expand Up @@ -222,7 +242,12 @@ def set_batches
end

def set_locations
@locations = policy_scope(Location).community_clinic
@locations =
if @draft_vaccination_record.bulk_upload_user_and_record?
Location.school.where(status: "open").order(:name)
else
policy_scope(Location).community_clinic
end
end

def set_supplied_by_users
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,15 @@ def patients_allowed_psd
@patients_allowed_psd ||=
@session
.patients
.has_consent_status(
"given",
.has_programme_status(
"due",
programme: @programme,
academic_year: @session.academic_year,
vaccine_method: "nasal"
academic_year: @session.academic_year
)
.has_triage_status(
"not_required",
.has_vaccine_criteria(
programme: @programme,
academic_year: @session.academic_year
academic_year: @session.academic_year,
vaccine_methods: [%w[nasal], %w[nasal injection]]
)
.without_patient_specific_direction(
programme: @programme,
Expand Down
21 changes: 12 additions & 9 deletions app/helpers/parents_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ def format_parents_with_relationships(parent_relationships)
def format_parent_with_relationship(parent_relationship, include_phone: true)
parent = parent_relationship.parent

[
parent_relationship.label_with_parent,
if (email = parent.email).present?
tag.span(email, class: "nhsuk-u-secondary-text-colour")
end,
if include_phone && (phone = parent.phone).present?
tag.span(phone, class: "nhsuk-u-secondary-text-colour")
end
].compact.join(tag.br).html_safe
safe_join(
[
parent_relationship.label_with_parent,
if (email = parent.email).present?
tag.span(email, class: "nhsuk-u-secondary-text-colour")
end,
if include_phone && (phone = parent.phone).present?
tag.span(phone, class: "nhsuk-u-secondary-text-colour")
end
].compact,
tag.br
)
end
end
9 changes: 4 additions & 5 deletions app/jobs/commit_import_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def perform(import_global_id)
end

counts = import.count_columns.index_with(0)
imported_school_move_ids = []

ActiveRecord::Base.transaction do
changesets =
Expand All @@ -44,11 +43,12 @@ def perform(import_global_id)
increment_column_counts!(import, counts, changesets)

import_patients_and_parents(changesets, import)

imported_school_move_ids |= import_school_moves(changesets, import)

import_school_moves(changesets, import)
import_pds_search_results(changesets, import)
end

PatientTeamUpdater.call(patient_scope: import.patients)

import.postprocess_rows!

reset_counts(import)
Expand All @@ -59,7 +59,6 @@ def perform(import_global_id)
**counts
)
end
SyncPatientTeamJob.perform_later(SchoolMove, imported_school_move_ids)
import.post_commit!
end
end
6 changes: 3 additions & 3 deletions app/jobs/commit_patient_changesets_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def perform(patient_changeset_ids)
changesets =
PatientChangeset.includes(:patient).where(id: patient_changeset_ids)
import = changesets.first.import
imported_school_move_ids = []

counts =
import.count_columns.index_with { |col| import.public_send(col) || 0 }
Expand All @@ -36,17 +35,18 @@ def perform(patient_changeset_ids)
if to_process.any?
increment_column_counts!(import, counts, to_process)
import_patients_and_parents(to_process, import)
imported_school_move_ids = import_school_moves(to_process, import)
import_school_moves(to_process, import)
import_pds_search_results(to_process, import)
to_process.each(&:processed!)
end

PatientTeamUpdater.call(patient_scope: import.patients)
end

if finished_committing_changesets?(import)
run_post_commit_tasks(import, counts)
end

SyncPatientTeamJob.perform_later(SchoolMove, imported_school_move_ids)
import.post_commit!
end

Expand Down
Loading
Loading