added emails and tests #93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Tycho-van-den-Heuvel/intranet:feat/emails-when-creating-servicelogs-through-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you create servicelogs through the api. no emails are sent. This PR adds that feature.
When creating a servicelog through the CRM it only sends an email if it's a new servicelog. I wanted to keep this property in the api as well.
When submitting a checklist we don't want to send an email since it will flood the email even more because submitting checklists will be more frequent
@ -205,0 +206,4 @@# don't bother participants with checklists emailsif (servicelog.situation != Servicelog.MSC_UNCHECKED_TODO and self.request.POSTRather than checking its not
Servicelog.MSC_UNCHECKED_TODO, can we use an allowlist of events which should trigger an email?>85c7c0b3dba6ed66f973a6ed66f973c404f68861c404f68861e0bad91e0fe0bad91e0f8359ee1fd8View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.