Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from alphagov/revert-411-switch-global-export…
…-to-s3 Revert "Upload exported CSV file to S3 rather than attaching it"
- Loading branch information
Showing
7 changed files
with
23 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
class GlobalExportNotification < ApplicationMailer | ||
def notification_email(notification_email, url) | ||
@url = url | ||
def notification_email(notification_email, filename, csv_contents) | ||
attachments[filename] = csv_contents | ||
|
||
mail( | ||
to: notification_email, | ||
subject: "[GOV.UK Feedback Explorer] Your global export is ready", | ||
subject: "[GOV.UK Feedback Explorer] Your global export is attached", | ||
) | ||
end | ||
end |
4 changes: 1 addition & 3 deletions
4
app/views/global_export_notification/notification_email.text.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
Hi, | ||
|
||
Use the link below to download your CSV file from Feedback Explorer. | ||
|
||
<%= @url %> | ||
Your CSV file is attached. | ||
|
||
- Feedex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.