Skip to content

Conversation

@shilenpatel1
Copy link
Contributor

@shilenpatel1 shilenpatel1 commented Dec 11, 2025

changelog: Internal, Reporting, Update ReportMailer, and its caller

see https://gitlab.login.gov/lg-teams/Team-Data/reporting/-/issues/367

🎫 Ticket

GL_Data_Reporting-367

Link to the relevant ticket:
GL_Data_Reporting-367

🛠 Summary of changes

Write a brief description of what you changed.
--> Updated ReportMailer.tables_report to use a to: keyword argument instead of email.
--> All reports calling ReportMailer.tables_report are updated to use to: instead of email:.
--> Related specs are updated

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Step 1 Tested updated ReportMailer definition with IRS Fraud Metric report in INT environment
  • Step 2 Run unit tests for spec files in this PR (i.e. bundle exec rspec ./spec/path/to/spec_file)

👀 Screenshots

If relevant, include a screenshot or screen capture of the changes.
Screenshot 2025-12-10 at 7 07 34 PM
Screenshot 2025-12-10 at 7 08 53 PM

Before:
After:

changelog: Internal, Reporting, Update ReportMailer, and its caller

see https://gitlab.login.gov/lg-teams/Team-Data/reporting/-/issues/367
changelog: Internal, Reporting, Update ReportMailer, and its caller

see https://gitlab.login.gov/lg-teams/Team-Data/reporting/-/issues/367
Copy link
Contributor

@koseni123 koseni123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@koseni123 koseni123 self-requested a review December 15, 2025 16:55
@shilenpatel1 shilenpatel1 requested review from adam-grandt-tts and astrogeco and removed request for adam-grandt-tts December 17, 2025 19:55
Copy link
Contributor

@astrogeco astrogeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with one nit

let(:mail) do
ReportMailer.tables_report(
email: '[email protected]',
to: '[email protected]',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need a spec check for cc and bcc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, added checks for CC and BCC

* changelog: Internal, Reporting, add spec for BCC and CC

see https://gitlab.login.gov/lg-teams/Team-Data/reporting/-/issues/367
@astrogeco astrogeco changed the title change reportMailer defination and specs change reportMailer definition and specs Dec 19, 2025
@shilenpatel1 shilenpatel1 changed the title change reportMailer definition and specs change reportMailer definition and specs (DoNotMerge) Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants