feat: stop removing `verify_uuid` value when revoking course certificates
[MB-1077] - Stop removing the verify_uuid when revoking course certificates. In v2 of course certificates this will allow us to retain the same URL to the certificate. If a learner's certificate is revoked (from being invalidated or no longer passing the course) the UUID will remain intact and the URL will not change. - Look for an existing cert for the user in a course-run during generation. If one exists, use the UUID from the existing certificate when updating the record. - Stop generating a `key` for v2 web-certificates. This is not needed for web-certs (this is used in PDF cert generation).
Showing
- lms/djangoapps/certificates/generation.py 7 additions, 3 deletionslms/djangoapps/certificates/generation.py
- lms/djangoapps/certificates/models.py 1 addition, 3 deletionslms/djangoapps/certificates/models.py
- lms/djangoapps/certificates/tests/test_generation.py 47 additions, 41 deletionslms/djangoapps/certificates/tests/test_generation.py
- lms/djangoapps/certificates/tests/test_services.py 1 addition, 1 deletionlms/djangoapps/certificates/tests/test_services.py
Please register or sign in to comment