Skip to content

Commit

Permalink
[issue-4336] halt launch requested notifications on projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Aug 5, 2024
1 parent d27bc29 commit 4a33f77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ def send_notifications
if Panoptes.project_request.recipients
request_type = if saved_change_to_beta_requested? && beta_requested
"beta"
elsif saved_change_to_launch_requested? && launch_requested
"launch"
end
ProjectRequestEmailWorker.perform_async(request_type, id) if request_type
end
Expand Down
19 changes: 0 additions & 19 deletions spec/models/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -483,25 +483,6 @@
end
end
end

context "when launch_requested changed" do
let(:field) { "launch_requested" }

context "when true" do
let(:value) { true }
it 'should queue the worker' do
expect(ProjectRequestEmailWorker).to receive(:perform_async).with("launch", project.id)
end
end

context "when false" do
let(:value) { false }

it 'should not queue the worker' do
expect(ProjectRequestEmailWorker).not_to receive(:perform_async)
end
end
end
end
end

Expand Down

0 comments on commit 4a33f77

Please sign in to comment.