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

feat: integrate platform verification attempt #224

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

alangsto
Copy link
Member

Description:

This PR integrates the newly added platform_verification_attempt_id field into the name affirmation code.

JIRA:

COSMO-495

Pre-Merge Checklist:

  • Updated the version number in edx_name_affirmation/__init__.py if these changes are to be released. See OEP-47: Semantic Versioning.
  • Described your changes in CHANGELOG.rst.
  • Confirmed Github reports all automated tests/checks are passing.
  • Approved by at least one additional reviewer.

Post-Merge:

  • Create a tag matching the new version number.

@alangsto alangsto force-pushed the alangsto/integrate_platform_attempt_id branch from 48b1c33 to b1e2cb8 Compare September 23, 2024 20:41
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  edx_name_affirmation
  admin.py
  api.py
  models.py 17
  serializers.py
  edx_name_affirmation/tests
  test_api.py
  test_models.py
Project Total  

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

Copy link
Member

@schenedx schenedx left a 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.

@@ -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)
Copy link
Member

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:
Copy link
Member

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.

Copy link
Member Author

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!

@alangsto alangsto force-pushed the alangsto/integrate_platform_attempt_id branch from b1e2cb8 to 788fc69 Compare September 24, 2024 13:51
@alangsto alangsto merged commit 74f3960 into main Sep 24, 2024
6 checks passed
@alangsto alangsto deleted the alangsto/integrate_platform_attempt_id branch September 24, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants