Skip to content

Commit d638fcf

Browse files
authored
Merge pull request #4289 from nhsuk/disable-pds-update-during-import
Disable PDS update during import completely
2 parents a6a8f13 + 3494c46 commit d638fcf

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

app/models/concerns/csv_importable.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,6 @@ def process!
126126
parse_rows! if rows.nil?
127127
return if invalid?
128128

129-
if Flipper.enabled? :pds_lookup_during_import
130-
changesets =
131-
rows.each_with_index.map do |row, row_number|
132-
PatientChangeset.from_import_row(row:, import: self, row_number:)
133-
end
134-
135-
changesets.each do
136-
if slow?
137-
ProcessPatientChangesetsJob.perform_later(it)
138-
else
139-
ProcessPatientChangesetsJob.perform_now(it)
140-
end
141-
end
142-
return
143-
end
144-
145129
counts = COUNT_COLUMNS.index_with(0)
146130

147131
ActiveRecord::Base.transaction do

spec/features/import_child_pds_lookup_extravaganza_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
describe "Import child records" do
44
scenario "PDS lookup extravaganza" do
5+
skip "Feature is completely disabled temporarily"
6+
57
given_i_am_signed_in
68
and_an_hpv_programme_is_underway
79
and_an_existing_patient_record_exists

0 commit comments

Comments
 (0)