-
Notifications
You must be signed in to change notification settings - Fork 4.2k
API functions for the new generic VerificationAttempt model in the verify_student app #35338
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e462e52
feat: add VerificationAttempt model to verify_student application
michaelroytman e635159
feat: add api for VerificationAttempt model
ilee2u 4ec05fb
fix: error handling for update
ilee2u 2fdac2e
chore: lint
ilee2u d4acad0
chore: lint for equals spaces
ilee2u 8fd774a
feat: using generic update function instead
ilee2u 53b9bdc
chore: fix docstring args
ilee2u dd3980b
fix: corrected status validation
ilee2u ae312a5
fix: datetime, status, and annotation fixes
ilee2u File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,7 @@ | |
|
|
||
| class WindowExpiredException(Exception): | ||
| pass | ||
|
|
||
|
|
||
| class VerificationAttemptInvalidStatus(Exception): | ||
| pass | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,22 @@ | ||
| """ | ||
| Status enums for verify_student. | ||
| """ | ||
| from enum import StrEnum, auto | ||
|
|
||
|
|
||
| class VerificationAttemptStatus: | ||
| class VerificationAttemptStatus(StrEnum): | ||
| """This class describes valid statuses for a verification attempt to be in.""" | ||
|
|
||
| # This is the initial state of a verification attempt, before a learner has started IDV. | ||
| created = "created" | ||
| CREATED = auto() | ||
|
|
||
| # A verification attempt is pending when it has been started but has not yet been completed. | ||
| pending = "pending" | ||
| PENDING = auto() | ||
|
|
||
| # A verification attempt is approved when it has been approved by some mechanism (e.g. automatic review, manual | ||
| # review, etc). | ||
| approved = "approved" | ||
| APPROVED = auto() | ||
|
|
||
| # A verification attempt is denied when it has been denied by some mechanism (e.g. automatic review, manual review, | ||
| # etc). | ||
| denied = "denied" | ||
| DENIED = auto() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.