Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: analytics for claims_provider #2401

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Sep 24, 2024

Part of #2247

Included a number of small renames/docs updates that I missed during #2379.

@thekaveman thekaveman self-assigned this Sep 24, 2024
@github-actions github-actions bot added deployment-dev [auto] Changes that will trigger a deploy if merged to dev documentation [auto] Improvements or additions to documentation back-end Django views, sessions, middleware, models, migrations etc. tests Related to automated testing (unit, UI, integration, etc.) and removed back-end Django views, sessions, middleware, models, migrations etc. labels Sep 24, 2024
Copy link

github-actions bot commented Sep 24, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  benefits/eligibility
  analytics.py
  views.py
  benefits/in_person
  views.py
  benefits/oauth
  analytics.py
Project Total  

This report was generated by python-coverage-comment-action

self.update_event_properties(auth_provider=verifier.claims_provider.client_name)
flow = session.flow(request)
if flow and flow.uses_claims_verification:
self.update_event_properties(claims_provider=flow.claims_provider.client_name)
Copy link
Member Author

Choose a reason for hiding this comment

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

This change was the actual point of this PR

Copy link

@thekaveman thekaveman force-pushed the refactor/claimsprovider-amplitude branch from fd51471 to c73ff13 Compare September 25, 2024 15:19
@thekaveman thekaveman marked this pull request as ready for review September 25, 2024 15:20
@thekaveman thekaveman requested a review from a team as a code owner September 25, 2024 15:20
angela-tran
angela-tran previously approved these changes Sep 25, 2024
Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

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

This looks good to me! Thanks for catching those old variable names / docs that needed to be updated from verifier to flow. I did a global search of "auth_provider", "auth provider", and "verifier" to double-check it as well.

Question (maybe more for #2247 than this PR): will there be commits in cal-itp/data-infra for updating the old references to auth_provider? e.g. in the SQL, YAML, etc.

@thekaveman
Copy link
Member Author

@angela-tran

will there be commits in cal-itp/data-infra for updating the old references

Yes, see cal-itp/data-infra#3468 -- I figured we could just use one big PR over there to make all these changes once we're done on the Benefits side. Definitely open to smaller PRs for each individual fix too, just didn't want to burden that team with a ton of PR/reviews.

I'm going to wait to merge this until @lalver1 merges #2402 since there will be conflicts, and it will probably be easier to resolve in this PR.

@thekaveman thekaveman force-pushed the refactor/claimsprovider-amplitude branch from 87b29cf to 5f56d3d Compare October 1, 2024 14:41
Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

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

👍

@thekaveman thekaveman merged commit f99b434 into main Oct 1, 2024
17 checks passed
@thekaveman thekaveman deleted the refactor/claimsprovider-amplitude branch October 1, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment-dev [auto] Changes that will trigger a deploy if merged to dev documentation [auto] Improvements or additions to documentation tests Related to automated testing (unit, UI, integration, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants