Skip to content

LG-10040 automate ial1 funnel report#9295

Merged
Sgtpluck merged 12 commits intomainfrom
dmm/LG-10040/automate-ial1-funnel-report
Oct 4, 2023
Merged

LG-10040 automate ial1 funnel report#9295
Sgtpluck merged 12 commits intomainfrom
dmm/LG-10040/automate-ial1-funnel-report

Conversation

@Sgtpluck
Copy link
Contributor

@Sgtpluck Sgtpluck commented Oct 2, 2023

🎫 Ticket

https://cm-jira.usa.gov/browse/LG-10040

🛠 Summary of changes

  • Adds Reports::AuthenticationReport class that pulls details from from IdentityConfig.store.weekly_auth_funnel_report_config in order to create and email a weekly authentication funnel report for partners that opt-in.
  • Adds a job to run Reports::AuthenticationReport weekly. (note: should this be dropped until we are able to test it? Since it won't run without any objects in the weekly_auth_funnel_report_config it felt safe, but could also follow the pattern of https://cm-jira.usa.gov/browse/LG-10836 of not adding the job until we've tested it in production)

Updated to make the email a little nicer in 13ff7ba

email showing with two tables with titles

To test locally:

  • add to your applications.yml file
  s3_reports_enabled: true
  weekly_auth_funnel_report_config: '[{"issuers": ["urn:gov:gsa:openidconnect.profiles:sp:sso:login-gov:identity-oidc-sinatra"], "emails": ["${YOUR_EMAIL}"]}]'
  • open up a rails console with a prod connection
    aws-vault exec prod-power -- bundle exec rails c
  • run the report
    Reports::AuthenticationReport.new.perform(Time.zone.now)
  • wait a bit

@Sgtpluck Sgtpluck force-pushed the dmm/LG-10040/automate-ial1-funnel-report branch from 6718a09 to cf2fb0a Compare October 2, 2023 15:31
@Sgtpluck Sgtpluck requested a review from a team October 2, 2023 19:02
@Sgtpluck Sgtpluck force-pushed the dmm/LG-10040/automate-ial1-funnel-report branch from 963af3d to 9164075 Compare October 3, 2023 18:48
@Sgtpluck Sgtpluck force-pushed the dmm/LG-10040/automate-ial1-funnel-report branch from 13ff7ba to dfa4d27 Compare October 4, 2023 13:47
Sgtpluck and others added 3 commits October 4, 2023 13:08
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@Sgtpluck Sgtpluck merged commit 794448c into main Oct 4, 2023
@Sgtpluck Sgtpluck deleted the dmm/LG-10040/automate-ial1-funnel-report branch October 4, 2023 18:35
@jmhooper jmhooper mentioned this pull request Oct 5, 2023
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.

3 participants