LG-16022 Create daily ssa accounts report capability#12083
LG-16022 Create daily ssa accounts report capability#12083kevinsmaster5 merged 11 commits intomainfrom
Conversation
| query = <<-SQL | ||
| WITH non_unique_ssn_signatures AS ( | ||
| SELECT ssn_signature | ||
| FROM profiles |
There was a problem hiding this comment.
This was missed out in the original story - we only need active profiles.
| SELECT | ||
| i.service_provider, | ||
| u.uuid, | ||
| u.updated_at, |
There was a problem hiding this comment.
Shouldn't this be i.last_authenticated_at?
There was a problem hiding this comment.
I had left i.last_authenticated_at in the WHERE filter and am grabbing u.updated_at thinking that's more closely tied to latest_activity_at in the story description. I can change that to last_authenticated if you think that's more to the point.
There was a problem hiding this comment.
The user could have authenticated to some other service provider, besides the service provider of interest. Wouldn't that mess with the updated_at?
There was a problem hiding this comment.
I'm not sure what the effect would be. I have modified the query to use i.last_authenticated_at with c8cf502
c8cf502 to
31fb27a
Compare
This reverts commit 006fa18. 1. The report, as implemented is not runnable. 2. The report is no longer needed.
🎫 Ticket
LG-16022
🛠 Summary of changes
Adds a manually-run Rake report that generates a CSV and outputs a comma separated list of accounts that have logged in "yesterday", and share the same ssn_signature (assumed in part to mean they have the same ssn)
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
last_authenticated_atvalue toDate.yesterday.middle_of_dayservice_providerstring on the profile and exit the consolerake "duplicate_accounts:report["urn:gov:gsa:openidconnect:sp:sinatra"]"👀 Screenshots