feat: add `edx.certificate.revoked` event
[MICROBA-1075] - Adds a new `edx.certificate.revoked` event to the LMS. - Refactor of our certificate revocation functions in the GeneratedCertificate model. This new event will be emit when a GeneratedCertificate with the status of `downloadable` is revoked (through the `invalidate(), mark_notpassing(), or mark_unverified() functions). Event will have a `source` field that will allow us how our certificates are being revoked from learners and can be broken down in the following way: *Invalidate* - allowlist_removal - certificate_generation - certificate_regeneration - certificate_service - certificate_invalidation_list - bulk_certificate_regeneration *mark_notpassing* - certificate_generation - notpassing_signal *unverified* - certificate_generation
Showing
- lms/djangoapps/certificates/api.py 1 addition, 1 deletionlms/djangoapps/certificates/api.py
- lms/djangoapps/certificates/generation_handler.py 3 additions, 3 deletionslms/djangoapps/certificates/generation_handler.py
- lms/djangoapps/certificates/models.py 56 additions, 45 deletionslms/djangoapps/certificates/models.py
- lms/djangoapps/certificates/queue.py 1 addition, 1 deletionlms/djangoapps/certificates/queue.py
- lms/djangoapps/certificates/services.py 1 addition, 1 deletionlms/djangoapps/certificates/services.py
- lms/djangoapps/certificates/signals.py 1 addition, 1 deletionlms/djangoapps/certificates/signals.py
- lms/djangoapps/certificates/tests/test_api.py 4 additions, 0 deletionslms/djangoapps/certificates/tests/test_api.py
- lms/djangoapps/certificates/tests/test_models.py 55 additions, 6 deletionslms/djangoapps/certificates/tests/test_models.py
- lms/djangoapps/certificates/tests/test_services.py 4 additions, 0 deletionslms/djangoapps/certificates/tests/test_services.py
- lms/djangoapps/instructor/views/api.py 1 addition, 1 deletionlms/djangoapps/instructor/views/api.py
- lms/djangoapps/instructor_task/tasks_helper/certs.py 1 addition, 1 deletionlms/djangoapps/instructor_task/tasks_helper/certs.py
Loading
Please register or sign in to comment