Closed SalmanSaleh1 closed 7 months ago
After discussions with the team, we've decided on the following approach:
When a user initiates event deletion, a delete confirm popup will inform them that deleting the event will remove it from the database, preventing certificate verification via the API.
Additionally, an email notification will be sent to recipients, informing them of the event's deletion by administrators or certificate generators.
If the event is neither downloaded nor sent, it will be deleted without sending any email notifications.
We will soon address the following tasks:
[x] Include an explanation of the action in the confirm delete popup.
[x] Introduce two database fields, "downloaded" and "sent," which will be marked as true or false to indicate if the event was downloaded or sent.
[x] Enhance the delete confirmation function to check if the event was downloaded or sent previously. If so, an email will be sent to the recipient.
[x] Implement functionality to update the "sent" or "downloaded" status to true within the send and download functions.
[x] Download
[x] send
[x] test
Improved delete confirmation popup with a concise warning message highlighting that deleting the event permanently removes it from the database, preventing certificate verification and triggering email notifications to recipients. Improves user clarity.
added two new fields, "sent" and "downloaded," to the addCertificate table in the database schema. These fields are of type BOOLEAN and default to FALSE. They are intended to track whether a certificate has been sent or downloaded
Updated the download_certificates function to mark certificates as downloaded after they are downloaded.
Following team discussions, it has been determined that email notifications will be sent to all relevant stakeholders, including recipients and certificate holders, upon event deletion.
When deleting an event, it should either be completely removed or made inactive so that admins can still check the API for certificates associated with that event.