* fix: add placeholder should_display_status_to_user
* fix: have VerificationAttempt inherit StatusModel
- should_display_status_to_user now returns False
* chore: makemigrations
* feat: status_changed field added
* temp: idea to add should_display_status_to_user
* feat: add should_display_status_to_user
* fix: correct call in helpers+services
* chore: lint+test fix
* fix: default hide_status_user as False
* chore: rename field call to STATUS
* chore: remove extra status field
- comment cleanup
* temp: lint + comment out created status for now
* fix: revamp status_changed for back-compat
* fix: override save for status_changed
* fix: replace created/updated instead of status
- also made migrations
* fix: squash commits
- also remove extra updated_at property
* chore: nits
* feat: add idv events to api
- moved what was in signals.py to a handlers.py (which is what their file should have been called)
* chore: quality
* fix: rename test file + imports
* fix: change handler reverse url in other tests
* fix: refactor signals and handlers pattern
- following OEP-49 pattern for signals directory
- user removed as param for update function
- event now emitted after save
* fix: unpin edx-name-affirmation
* chore: add init to signals dir
* fix: compile requirements
* chore: quality
* chore: fix some imports
* chore: quality
* test: added signal emissions to test_api
* chore: lint
* feat: add VerificationAttempt model to verify_student application
This commits adds a VerificationAttempt model to store implementation and provider agnostic information about identity verification attempts in the platform.
* feat: add api for VerificationAttempt model
* fix: error handling for update
- added tests accordingly
- also took care of some nits
* chore: lint
* chore: lint for equals spaces
* feat: using generic update function instead
- can now update name, status, and exp. date on generic attempts
- changed tests accordingly
- a few nits
* chore: fix docstring args
* fix: corrected status validation
- reverted to old status validation method
- fixed tests accordingly
* fix: datetime, status, and annotation fixes
- expiration_datetime can be updated to None
- VerificationAttemptStatus is now StrEnum
- Added type annotations for api functions
---------
Co-authored-by: michaelroytman <mroytman@edx.org>
This commit modifies the approve_id_verifications management command to send an IDV approval email to learners. This ensures that learners are informed of approvals to their IDV attempts when performed using the management command. This more closely mirrors the way IDV approvals work when using an IDV vendor.