New endpoint to allow the backoffice staff user to generate certificate from a course view, and launch the generation of certificates for its products relations.
To avoid having a heavy request, we decided to use celery to execute the task in background with celery.
We will create two new endpoints :
To trigger the generation of certificates
To check the status of the ongoing generation of certificates
Proposal
[x] New endpoint to trigger the generation of certificates for the backoffice
[x] New endpoint to check the generation of certificate process
[x] Add new utility methods for course product relation to get all orders & all certificates that were generated.
[x] Add a new celery task calling the helper method to generate certificates from orders
[x] Refactor the helper method to be able to parse different type of input parameters : Queryset or List of order ids(new).
Purpose
New endpoint to allow the backoffice staff user to generate certificate from a course view, and launch the generation of certificates for its products relations. To avoid having a heavy request, we decided to use celery to execute the task in background with celery. We will create two new endpoints :
Proposal