Skip to content

Commit 700a2e1

Browse files
authored
change reportMailer definition and specs (DoNotMerge) (#12740)
* change reportMailer defination and specs changelog: Internal, Reporting, Update ReportMailer, and its caller see https://gitlab.login.gov/lg-teams/Team-Data/reporting/-/issues/367 * lint fix changelog: Internal, Reporting, Update ReportMailer, and its caller see https://gitlab.login.gov/lg-teams/Team-Data/reporting/-/issues/367 * add spec for BCC and CC * changelog: Internal, Reporting, add spec for BCC and CC see https://gitlab.login.gov/lg-teams/Team-Data/reporting/-/issues/367
1 parent 0311973 commit 700a2e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+82
-72
lines changed

app/jobs/reports/ab_tests_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def tables_report(ab_test)
2626
report = ab_tests_report(ab_test)
2727

2828
ReportMailer.tables_report(
29-
email: ab_test.report.email,
29+
to: ab_test.report.email,
3030
subject:,
3131
message: [subject, report.participants_message].compact,
3232
reports: report.as_emailable_reports,

app/jobs/reports/api_transaction_count_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def perform(date = Time.zone.yesterday.end_of_day)
2828
end
2929

3030
ReportMailer.tables_report(
31-
email: email_addresses,
31+
to: email_addresses,
3232
subject: "API Transaction Count Report - #{report_date.to_date}",
3333
reports: reports,
3434
message: preamble,

app/jobs/reports/authentication_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def perform(report_date)
2020

2121
report_hash['emails'].each do |email|
2222
ReportMailer.tables_report(
23-
email:,
23+
to: email,
2424
subject:,
2525
message:,
2626
reports:,

app/jobs/reports/drop_off_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def perform(report_date)
1818
reports = [report_maker(config['issuers']).as_emailable_reports].flatten
1919
config['emails'].each do |email|
2020
ReportMailer.tables_report(
21-
email: email,
21+
to: email,
2222
subject: subject,
2323
message: preamble,
2424
reports: reports,

app/jobs/reports/fraud_metrics_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def perform(date = Time.zone.yesterday.end_of_day)
2828
end
2929

3030
ReportMailer.tables_report(
31-
email: email_addresses,
31+
to: email_addresses,
3232
subject: "Fraud Metrics Report - #{report_date.to_date}",
3333
reports: reports,
3434
message: preamble,

app/jobs/reports/identity_verification_outcomes_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def perform(date = Time.zone.yesterday.end_of_day)
2727
end
2828

2929
ReportMailer.tables_report(
30-
email: email_addresses,
30+
to: email_addresses,
3131
subject: "Identity Verification Outcomes Report - #{report_date.to_date}",
3232
reports: reports,
3333
message: preamble,

app/jobs/reports/identity_verification_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def perform(report_date)
2323
end
2424

2525
ReportMailer.tables_report(
26-
email: email,
26+
to: email,
2727
subject: "Daily Identity Verification Report - #{report_date.to_date}",
2828
reports: reports,
2929
message: message,

app/jobs/reports/irs_credential_tenure_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def perform(date = Time.zone.yesterday.end_of_day)
2929
end
3030

3131
ReportMailer.tables_report(
32-
email: email_addresses,
32+
to: email_addresses,
3333
subject: "IRS Credential Tenure Report - #{date.to_date}",
3434
reports: reports,
3535
message: preamble,

app/jobs/reports/irs_fraud_metrics_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def perform(perform_date = Time.zone.yesterday.end_of_day, perform_receiver = :i
3333
end
3434

3535
ReportMailer.tables_report(
36-
email: to_emails,
36+
to: to_emails,
3737
bcc: bcc_emails,
3838
subject: "IRS Fraud Metrics Report - #{report_date.to_date}",
3939
reports: reports,

app/jobs/reports/irs_monthly_cred_metrics_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def perform(perform_date = Time.zone.yesterday.end_of_day, perform_receiver = :i
121121
# rubocop:enable Layout/LineLength
122122

123123
ReportMailer.tables_report(
124-
email: to_emails,
124+
to: to_emails,
125125
bcc: bcc_emails,
126126
subject: "#{partner_strings.first} Monthly Credential Metrics - #{@report_date.to_date}",
127127
message: preamble,

0 commit comments

Comments
 (0)