Skip to content

Conversation

@shilenpatel1
Copy link
Contributor

@shilenpatel1 shilenpatel1 commented Dec 22, 2025

🎫 Ticket

GL_Data_Reporting-369

Link to the relevant ticket:
GL_Data_Reporting-369

🛠 Summary of changes

Write a brief description of what you changed.
--> Implement SpFraudMetricsReport report job that expands the capability of sending the report to differnet agency, not just the IRS.
--> Implement SpFraudMetricsLg99Report at lib/reporting/sp_fraud_metrics_lg99_report.rb, that generates the actual report
--> Added sp_fraud_metrics_report_configs in identity_config and set the default value for that.
--> Added unit tests for SpFraudMetricsReport in spec file at spec/jobs/reports/sp_fraud_metrics_report_spec.rb
--> Added unit tests for SpFraudMetricsLg99Report in spec file at spec/lib/reporting/sp_fraud_metrics_lg99_report_spec.rb

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Step 1 Tested report generation using local rails console with providing default sp_fraud_metrics_report_configs
  • Step 2 Run unit tests for spec files in this PR (i.e. bundle exec rspec ./spec/path/to/spec_file)

👀 Screenshots

Local testing:

Stub all AWS calls, to avoid call to AWS:

Screenshot 2025-12-17 at 2 19 18 PM

Run SpFraudMetricsReport to send to :both

Screenshot 2025-12-17 at 2 19 27 PM Screenshot 2025-12-17 at 2 19 39 PM Screenshot 2025-12-17 at 2 19 42 PM

Added specs for Lib and job:

Screenshot 2025-12-17 at 2 25 20 PM Screenshot 2025-12-17 at 2 25 47 PM

@shilenpatel1 shilenpatel1 force-pushed the 369_sp_fraud_metric_report branch from ec5c9e6 to cf7f7d0 Compare December 22, 2025 20:52
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.

2 participants