-
Notifications
You must be signed in to change notification settings - Fork 9
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: rename EligibilityVerifier
to EnrollmentFlow
#2293
Conversation
d56d688
to
aebbad1
Compare
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
409965e
to
bdb159d
Compare
Preview url: https://benefits-2293--cal-itp-previews.netlify.app |
0add0e7
to
c12efa1
Compare
56548bd
to
fe50fad
Compare
fe50fad
to
fbaddb9
Compare
75a9037
to
55c3041
Compare
1513ca1
to
779aaa6
Compare
55c3041
to
e3b44a1
Compare
5d54798
to
cf85c7d
Compare
99485ff
to
c5130db
Compare
cf85c7d
to
16d56f0
Compare
c5130db
to
27f8ad8
Compare
a6b73f9
to
91d68c3
Compare
27f8ad8
to
163054e
Compare
91d68c3
to
4cafc52
Compare
4cafc52
to
95c7943
Compare
95c7943
to
bbf7ff8
Compare
verifier = session.verifier(request) | ||
verifier_name = verifier.name if verifier else None | ||
flow = session.flow(request) | ||
verifier_name = flow.name if flow else None |
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.
Would we want to use flow_name
instead of verifier_name
? Or maybe we decided to use this name since the analytics will still send eligibility_verifier
/verifier_name
key/values in update_event_properties
and update_user_properties
. It doesn't affect any functionality but I was wondering about this line.
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.
Yeah, I think it needs to stay verifier_name
so that existing analytics charts still work and then #2248 will take care of updating it.
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.
Yup, purposefully ignored the analytics code in this PR, to wait for #2248
@@ -10,7 +10,7 @@ class OAuthEvent(core.Event): | |||
|
|||
def __init__(self, request, event_type): | |||
super().__init__(request, event_type) | |||
verifier = session.verifier(request) | |||
verifier = session.flow(request) |
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.
Similar question, would we want to name this, flow
, instead of verifier
? If we do, we'd need to update the lines below to also use flow
instead of verifier
.
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.
Though it's not explicitly listed, I think this update would also be a part of #2248
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.
Looks good to me!
- For all
EligiblityVerifier
s, confirm that an instance ofEnrollmentFlow
now exists in the database with the same data - Flows using claims and API verification should still work (tested both and they still work)
-
Can X eligibility verifier
permissions are removed -
Can X enrollment flow
permissions are added -
Cal-ITP
group hasCan [view|change] enrollment flow
permissions
Closes #2282
Testing locally
main
branchlocal_fixtures.json
(or whatever fixture you are using) hasEligiblityVerifiers
bin/reset_db.sh
(now your local DB mirrors the structure of thedev
environment)bin/init.sh
(running this PR's migration on top of existing DB structure)EligiblityVerifier
s, confirm that an instance ofEnrollmentFlow
now exists in the database with the same dataCan X eligibility verifier
permissions are removedCan X enrollment flow
permissions are addedCal-ITP
group hasCan [view|edit] enrollment flow
permissions