-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feat: analytics for multiple claims on a flow #2479
Conversation
bac1407
to
bcdafd9
Compare
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
d785ba8
to
727a4c1
Compare
@lalver1 Thanks for the thorough notes in the PR description. I'm just now starting to review this PR and am a little confused by this note:
Shouldn't we be able to just do a successful enrollment locally in order to see a new instance of an |
Thanks for the review @angela-tran, yep, if you go through a successful enrollment you'll see the new instance of an |
Exactly! I'm re-reading the |
9dd5b0e
to
53dab30
Compare
Update on this PR:
Currently addressing the missing coverage due to the new code in |
ad8038f
to
c6fc4c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's getting closer, but still could use a bit of code cleanup
c6fc4c3
to
63a154b
Compare
One more update on this PR, we worked with @thekaveman on cleaning up the code some more earlier today and I ran through older adult with the debugger (mostly to make sure types made sense when making calls to |
Nice job 🎉 |
Closes #2355
This PR is a follow-up to #2463. It includes the following changes:
returned enrollment
analytics event to include the "extra claims" that came back as verified from IdGEnrollmentEvent
that holds the "extra claims"Note that even though the coverage report for #2463 looked ok, this PR updates a few tests associated with #2463 because they felt a bit incomplete. For example
benefits/tests/pytest/oauth/test_views.py
Line 252 in 43492c6
and
benefits/tests/pytest/oauth/test_views.py
Line 283 in 43492c6
Reviewing
First run the database migrations since a new field was added to
EnrollmentEvent
. Since the changes involve theenrollment
application and the claims that are returned from IdG, it's a bit tricky to review this PR. The tests seem to capture the behavior that has changed due to this PR, but you can also hard code a few lines to review the error code changes andEnrollmentEvent
changes.To review the error codes part, set
claim_value = "10"
inbenefits/benefits/oauth/views.py
Line 136 in 43492c6
finished #
event.To see a new instance of an
EnrollmentEvent
that has multiple claims you can set, for example,extra_claims = "claim_1, claim_2"
inbenefits/benefits/enrollment/views.py
Line 74 in 727a4c1