-
Notifications
You must be signed in to change notification settings - Fork 32
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
Retrieve courses associated with a deleted Convener #1373
Comments
Moreover all the certificates issued for the courses that have been deleted seems to be no more available. The unique link that attendees can use to prove that they have completed the course is no more available, the page returns this error "Sorry, no certificate matching this number has been issued." and this is a problem since the certificate has been issued and a credit has been used for it. |
I will check if I can retrieve it from a backup. |
Please provide the course convenor name and your org name. I will only be able to check my backups tomorrow so please stand by. |
@sumandari can you find and fix the underlying bug here please. We should remove support for deleting convenors if there are relations attached to them, and rather let you archive them so they become inactive from your org. |
@RobiFag ok I have retrieved the backup from last night. Can you please confirm that the affected convenor is username: 1-rmarzocchi84-gter-srl ? I have also checked the certificate pdfs, they are still on the system and have not been deleted, so will be available again once I restore the convenor and the associated certificates. For future reference, if you file an issue, please provide adequate detail so that we can deal with it efficiently. Thanks! |
@timlinux I confirm I am the old convener. |
@timlinux thank you so much, I confirm the convenor is @rmarzocchi84 and the organisation is Gter. |
Yes sure, sorry for the lack of details but i wasn't sure if it was an issue or a normal behavior of the platform. Thanks again! |
Hi @timlinux sorry for being insistent, but do you have any news about the restoration of the deleted convenor and its related certificates? |
|
@sumandari so we can take the two dumps I put in the home dir on the server:
If you pg_restore to restore first the predelete dump and the do Then use your favourite diff tool to compare the two. I think all the changes are only in certification_courseconvener, certification_course and certification_attendee tables but you may need to look around. At the end of the process you should have a list on insert statements similar to the listing in my previous comment that we can then just run in PSQL on the production db to restore the missing records. I have confirmed that the certificates themselves are still available on the server so no need to worry about those. Please test locally on your own machine before running on production and make an extra db backup before running your script. |
Hi @RobiFag The fix for the code hasn't been deployed yet, I will post here once it's done so that you can deactivate the course convener. Regards, |
Thank you so much @sumandari and @timlinux! Certificates have been successfully restored and the unique link are now available!! |
@RobiFag New feature for disabling Course Convener has been released in v2.3.0 and deployed on prod. Would you please give it a try? Thank you! |
It seems that only admins can delete course conveners. It would be best if the responsible person from the training center can remove course conveners and their courses are archived. |
Maybe applicants of an organisation should have a special role. That role should allow to edit organisation info (also during the application process) and remove course conveners. Course conveners should have a normal user role. |
Applicants should be informed after approval that they are responsible for updating the organisation (add/remove course conveners, edit info, archive org) when things change. |
Hi all, we have just removed a convener from the list of our organization conveners and all the courses associated to this convener have been deleted, is ti possible to retrieve these courses?
The text was updated successfully, but these errors were encountered: