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

VerificationAttempt.expiration_datetime field may be None. #35606

Conversation

MichaelRoytman
Copy link
Contributor

@MichaelRoytman MichaelRoytman commented Oct 7, 2024

Description

Jira: COSMO-521 (private)

This commit fixes a bug introduced by the new VerificationAttempt model. The expiration_datetime field is nullable. Other IDV models in the verify_student application have a default value for expiration_date, so they are typically not null, despite being nullable.

This commit updates code that queries this field to function correctly when the value of expiration_datetime is None. In this case, a None expiration_datetime indicates a non-expiring attempt.

Supporting information

openedx/platform-roadmap#367

Testing instructions

None.

Deadline

None.

Other information

None.

@MichaelRoytman MichaelRoytman force-pushed the michaelroytman/COSMO-521-expiration_datetime-VerificationAttempt-IDVerificationService branch 3 times, most recently from 50c224b to c0d788a Compare October 7, 2024 17:40
Copy link
Contributor

@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.

👍

@MichaelRoytman MichaelRoytman force-pushed the michaelroytman/COSMO-521-expiration_datetime-VerificationAttempt-IDVerificationService branch from c0d788a to 597bb7c Compare October 7, 2024 19:54
This commit fixes a bug introduced by the new VerificationAttempt model. The expiration_datetime field is nullable. Other IDV models in the verify_student application have a default value for expiration_date, so they are typically not null, despite being nullable.

This commit updates code that queries this field to function correctly when the value of expiration_datetime is None. In this case, a None expiration_datetime indicates a non-expiring attempt.
@MichaelRoytman MichaelRoytman force-pushed the michaelroytman/COSMO-521-expiration_datetime-VerificationAttempt-IDVerificationService branch from 597bb7c to 59b9bb8 Compare October 7, 2024 19:54
Copy link
Member

@rijuma rijuma left a comment

Choose a reason for hiding this comment

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

LGTM

@MichaelRoytman MichaelRoytman merged commit 257f2de into master Oct 7, 2024
49 checks passed
@MichaelRoytman MichaelRoytman deleted the michaelroytman/COSMO-521-expiration_datetime-VerificationAttempt-IDVerificationService branch October 7, 2024 21:12
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

4 participants