-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bulk certificate generation not working from BO #1063
Comments
Just for information, there can be 2 reasons why you have this message : It's either :
Only when the process is ongoing that you can find the cache data, here it returns a status code Although, there should something else going wrong since no certificates are generated. |
It is now possible to launch the generation of certificates for products of type certificate from the BO. Fix #1063
It is now possible to launch the generation of certificates for products of type certificate from the BO. Fix #1063
It is now possible to launch the generation of certificates for products of type certificate from the BO. Fix #1063
We have decided to make this issue in priority and make sure that the generation of certificates for products of type certificates works. We want our admin users to use the BO, instead of the Django admin. |
It is now possible to launch the generation of certificates for orders with product of type certificate from the BO. Fix #1063
It is now possible to launch the generation of certificates for orders with product of type certificate from the BO. Fix #1063
It is now possible to launch the generation of certificates for orders with product of type certificate from the BO. Fix #1063
It is now possible to launch the generation of certificates for orders with product of type certificate from the BO. Fix #1063
It is now possible to launch the generation of certificates for orders with product of type certificate from the BO. Fix #1063
Thanks for the info, @jonathanreveille, that makes sense! We ran a new test in production (for the first time on this product) to go through all the steps, and we noticed that a 404 appears even before the generation starts: joanie-gen-bo-fail.webmThis is great for focusing on generation from the back-office rather than from the admin panel. 🙏 If there’s still anything to investigate or understand about this bug, @cuchulainn-fun has two certificate generations planned this week (we discussed this with @jbpenrath). |
It is now possible to launch the generation of certificates for orders with product of type certificate from the BO. Fix #1063
The Actually, the queryset that retrieves eligible orders that can get their certificates generated does not work as intended. That queryset would only work with product type credential, and not yet product type certificate... 😓 Thus, the second endpoint that calls |
Thanks for this explanation @jonathanreveille, it's very clear! |
Bug Report
Problematic behavior
Bulk certificate generation does not seem to work from Joanie's back office, requiring the use of the Django admin panel instead (see #1061).
Currently, only certificate generation for a specific order works.
Expected behavior/code
Enable certificate generation directly from the back office, at the product level.
Ideally, this process could be improved (as discussed between @jonathanreveille and @cuchulainn-fun 😉 – which could be a separate feature request), for example:
This would help prevent accidental certificate generation for previous sessions.
For reference, for courses offering both Certificates and Open Badges, we frequently need to modify the course grading in Open edX before de generation. This prevents setting up an automatic certificate generation via a cron job :/
Steps to Reproduce
Environment
Possible Solution
There seems to be a verification step that fails, even in the back office.
This step does not occur when generating a certificate for a specific order.
For exemple, this requests fails in 404:
https://joanie.preprod-fun.apps.openfun.fr/api/v1.0/admin/course-product-relations/590316b1-958f-4601-a64b-d6c2044b3e49/check_certificates_generation_process/
And its preview shows
details: "No cache data found."
Additional context/Screenshots
Bulk generation (left) vs. Order generation (right):
"No cache data found." preview:
Bulk generation attempt:
joanie-bulk-gen-fails_v2.webm
Order generation:
joanie-order-gen-OK.webm
More info: Trello card
🙏
The text was updated successfully, but these errors were encountered: