Skip to content

Commit a80208a

Browse files
committed
Revert "Ignore completed sessions when deriving consent request status"
This reverts commit c785c74.
1 parent 38676ac commit a80208a

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

app/lib/status_generator/programme.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ def sessions
339339
.select { it.academic_year == academic_year }
340340
.flat_map(&:sessions)
341341
.select { it.programme_types.include?(programme_type) }
342-
.reject(&:completed?)
343342
end
344343
end
345344
end

spec/lib/status_generator/programme_spec.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,6 @@
405405
its(:vaccine_methods) { should be_nil }
406406
its(:without_gelatine) { should be_nil }
407407

408-
context "when the only session is completed" do
409-
let(:session) { create(:session, :completed, programmes: [programme]) }
410-
411-
before { ConsentNotification.delete_all }
412-
413-
its(:status) { should be(:needs_consent_request_not_scheduled) }
414-
end
415-
416408
context "when the patient only has a generic clinic location" do
417409
let(:team) { create(:team, programmes: [programme]) }
418410
let(:location) { create(:generic_clinic, team:) }

0 commit comments

Comments
 (0)