In Project test awe create a new sample named test001
Upload pair end data to test001
Select the newly created workflow execution.
w = WorkflowExecution.where(submitter: Project.last.namespace.automation_bot).first
Make sure email notifications are enabled.
w.email_notification = true
Change state to completed or error.
w.state = "completed"
Save the workflow execution.
w.save
Check mock email service for sent email. Open a browser and navigate to http://0.0.0.0:8025/.
Repeat steps for state error.
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
What does this PR do and why?
Sends user email to human pipeline submitter & sends manager emails if automated pipeline was submitted by bot. Fixes #575.
Screenshots or screen recordings
Pipeline completed manger email:
Pipeline errored manger email:
![image](https://github.com/phac-nml/irida-next/assets/325703/07933378-f892-4c3c-8497-5d93b7aceac2)
How to set up and validate locally
~/go/bin/MailHog
.user1@email.com
test awe
test awe
create a new sample namedtest001
test001
completed
orerror
.error
.PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.