Skip to content

Commit 795ec34

Browse files
authored
Merge pull request #278 from alphagov/2534-remove-notify-integration
Remove Notify integration
2 parents 2ba8a47 + dd4b048 commit 795ec34

15 files changed

Lines changed: 4 additions & 172 deletions

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ gem "hashie"
2929
gem "inline_svg"
3030
gem "kaminari"
3131
gem "kramdown"
32-
gem "mail-notify"
3332
gem "nokogiri"
3433
gem "openapi3_parser"
3534
gem "opensearch-ruby"

Gemfile.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,6 @@ GEM
362362
net-imap
363363
net-pop
364364
net-smtp
365-
mail-notify (2.1.0)
366-
actionmailer (>= 5.2.8.1)
367-
actionpack (>= 5.2.8.1)
368-
actionview (>= 5.2.8.1)
369-
activesupport (>= 5.2.8.1)
370-
notifications-ruby-client (~> 6.0)
371-
rack (>= 2.1.4.1)
372365
marcel (1.0.4)
373366
matrix (0.4.2)
374367
method_source (1.1.0)
@@ -411,8 +404,6 @@ GEM
411404
racc (~> 1.4)
412405
nokogiri (1.18.8-x86_64-linux-gnu)
413406
racc (~> 1.4)
414-
notifications-ruby-client (6.2.0)
415-
jwt (>= 1.5, < 3)
416407
null_logger (0.0.1)
417408
oauth2 (2.0.9)
418409
faraday (>= 0.17.3, < 3.0)
@@ -955,7 +946,6 @@ DEPENDENCIES
955946
inline_svg
956947
kaminari
957948
kramdown
958-
mail-notify
959949
nokogiri
960950
openapi3_parser
961951
opensearch-ruby
@@ -1097,7 +1087,6 @@ CHECKSUMS
10971087
logstasher (2.1.5) sha256=095e9208d9a72b9da521909b3947cf3776c70517e933acbf071228617dcd0d02
10981088
loofah (2.24.1) sha256=655a30842b70ec476410b347ab1cd2a5b92da46a19044357bbd9f401b009a337
10991089
mail (2.8.1) sha256=ec3b9fadcf2b3755c78785cb17bc9a0ca9ee9857108a64b6f5cfc9c0b5bfc9ad
1100-
mail-notify (2.1.0) sha256=a981d6dd9a2922ad8449a6625467519848856b7ded2049060665acc68d3e5a79
11011090
marcel (1.0.4) sha256=0d5649feb64b8f19f3d3468b96c680bae9746335d02194270287868a661516a4
11021091
matrix (0.4.2) sha256=71083ccbd67a14a43bfa78d3e4dc0f4b503b9cc18e5b4b1d686dc0f9ef7c4cc0
11031092
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
@@ -1124,7 +1113,6 @@ CHECKSUMS
11241113
nokogiri (1.18.8-arm64-darwin) sha256=483b5b9fb33653f6f05cbe00d09ea315f268f0e707cfc809aa39b62993008212
11251114
nokogiri (1.18.8-x86_64-darwin) sha256=024cdfe7d9ae3466bba6c06f348fb2a8395d9426b66a3c82f1961b907945cc0c
11261115
nokogiri (1.18.8-x86_64-linux-gnu) sha256=4a747875db873d18a2985ee2c320a6070c4a414ad629da625fbc58d1a20e5ecc
1127-
notifications-ruby-client (6.2.0) sha256=da4ba515cef3105d7ed46d17c644a3ea437f07cbc02c6cf095cf1984a656cf72
11281116
null_logger (0.0.1) sha256=5039c505a2e00f50111f266db62b8c9c5b57e9c8f28380944d79a55ec8a9f5a1
11291117
oauth2 (2.0.9) sha256=b21f9defcf52dc1610e0dfab4c868342173dcd707fd15c777d9f4f04e153f7fb
11301118
omniauth (2.1.3) sha256=8d24e2e55c41926c96e4a93fd566bc026dfd6f2c850408748e89945a565956c2

app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
"AVAILABLE_WITHOUT_EARLY_ACCESS_AUTHENTICATION": {
3232
"value": "true"
3333
},
34-
"DISABLE_MAIL_DELIVERY": {
35-
"value": "true"
36-
},
3734
"OPENAI_ACCESS_TOKEN": {
3835
"required": true
3936
},

app/mailers/application_mailer.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
require "active_record/railtie"
88
# require "active_storage/engine"
99
require "action_controller/railtie"
10-
require "action_mailer/railtie"
10+
# require "action_mailer/railtie"
1111
# require "action_mailbox/engine"
1212
# require "action_text/engine"
1313
require "action_view/railtie"

config/environments/development.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,6 @@
3131
# Change to :null_store to avoid any caching.
3232
config.cache_store = :memory_store
3333

34-
config.action_mailer.default_url_options = { host: Plek.find("govuk-chat") }
35-
36-
# Make template changes take effect immediately.
37-
config.action_mailer.perform_caching = false
38-
39-
## use these 2 lines to output to the console
40-
config.action_mailer.delivery_method = :test
41-
config.action_mailer.logger = Logger.new($stdout)
42-
43-
## use these 2 lines to send for real via Notify
44-
# config.action_mailer.delivery_method = :notify
45-
# config.action_mailer.notify_settings = { api_key: ENV["GOVUK_NOTIFY_API_KEY"] }
46-
4734
# Print deprecation notices to the Rails logger.
4835
config.active_support.deprecation = :log
4936

config/environments/production.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
# Disable caching for Action Mailer templates even if Action Controller
7070
# caching is enabled.
71-
config.action_mailer.perform_caching = false
71+
# config.action_mailer.perform_caching = false
7272

7373
# Ignore bad email addresses and do not raise email delivery errors.
7474
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -92,11 +92,4 @@
9292

9393
# Skip DNS rebinding protection for the default health check endpoint.
9494
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
95-
96-
config.action_mailer.default_url_options = { host: Plek.website_root }
97-
config.action_mailer.delivery_method = :notify
98-
config.action_mailer.notify_settings = {
99-
api_key: ENV["GOVUK_NOTIFY_API_KEY"],
100-
}
101-
config.action_mailer.perform_deliveries = ENV["DISABLE_MAIL_DELIVERY"].blank?
10295
end

config/environments/test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
# Tell Action Mailer not to deliver emails to the real world.
3333
# The :test delivery method accumulates sent emails in the
3434
# ActionMailer::Base.deliveries array.
35-
config.action_mailer.delivery_method = :test
35+
# config.action_mailer.delivery_method = :test
3636

3737
# Set host to be used by links generated in mailer templates.
38-
config.action_mailer.default_url_options = { host: "example.com" }
38+
# config.action_mailer.default_url_options = { host: "example.com" }
3939

4040
# Print deprecation notices to the stderr.
4141
config.active_support.deprecation = :stderr

config/initializers/mail_recipient_interceptor.rb

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/mail_recipient_interceptor.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)