-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: integrate platform verification attempt #224
Conversation
48b1c33
to
b1e2cb8
Compare
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
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.
I got NIT questions only.
Feel free to merge and address my questions later.
edx_name_affirmation/api.py
Outdated
@@ -194,23 +146,29 @@ def update_verified_name_status( | |||
* status (Verified Name Status) | |||
* verification_attempt_id (int) | |||
* proctored_exam_attempt_id (int) | |||
* platform_verification_attempt_id (int) |
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.
Could we please update the comments here? I feel like with the platform_verification_attempt_id, the comments, should be more specific about how it should work with verification_attempt_id
verification_attempt_id=verification_attempt_id, | ||
proctored_exam_attempt_id=proctored_exam_attempt_id, | ||
) | ||
if sum(map(bool, [proctored_exam_attempt_id, verification_attempt_id, platform_verification_attempt_id])) > 1: |
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.
Can't we just choose one instead of raising error? Should we favor the platform_verification_attempt_id? I am afraid if we run into this conflict condition, the user will see blocking errors and cannot continue.
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.
I think that is a fair point, although it would introduce a change in behavior. I'll ask in stand up!
b1e2cb8
to
788fc69
Compare
Description:
This PR integrates the newly added
platform_verification_attempt_id
field into the name affirmation code.JIRA:
COSMO-495
Pre-Merge Checklist:
edx_name_affirmation/__init__.py
if these changes are to be released. See OEP-47: Semantic Versioning.CHANGELOG.rst
.Post-Merge: