From bcf82202190c9ae8d18588ea762bbac42a859f21 Mon Sep 17 00:00:00 2001 From: Zach Margolis Date: Tue, 5 Sep 2023 14:37:46 -0700 Subject: [PATCH 1/4] Update IDV report to support multiple issuers (LG-10875) - Expanding use so we can support a specific one-off request, but seemed easier to expand all reports at once --- .../reports/identity_verification_report.rb | 2 +- lib/reporting/authentication_report.rb | 12 +++++------ lib/reporting/command_line_options.rb | 8 ++++---- lib/reporting/identity_verification_report.rb | 12 +++++------ .../reporting/authentication_report_spec.rb | 4 ++-- .../reporting/command_line_options_spec.rb | 20 +++++++++++++++++-- .../identity_verification_report_spec.rb | 6 +++--- 7 files changed, 40 insertions(+), 24 deletions(-) diff --git a/app/jobs/reports/identity_verification_report.rb b/app/jobs/reports/identity_verification_report.rb index 8943374b7c8..ed516fd2fe8 100644 --- a/app/jobs/reports/identity_verification_report.rb +++ b/app/jobs/reports/identity_verification_report.rb @@ -16,7 +16,7 @@ def perform(report_date) def report_maker Reporting::IdentityVerificationReport.new( - issuer: nil, + issuers: [], time_range: report_date.all_day, slice: 4.hours, ) diff --git a/lib/reporting/authentication_report.rb b/lib/reporting/authentication_report.rb index 8924c0f9c5e..1f85345a519 100644 --- a/lib/reporting/authentication_report.rb +++ b/lib/reporting/authentication_report.rb @@ -14,7 +14,7 @@ module Reporting class AuthenticationReport include Reporting::CloudwatchQueryQuoting - attr_reader :issuer, :time_range + attr_reader :issuers, :time_range module Events OIDC_AUTH_REQUEST = 'OpenID Connect: authorization request' @@ -31,14 +31,14 @@ def self.all_events # @param [String] isssuer # @param [Range