fix: email task listing for subsections
Improve task listing in reminder and notification emails.
Supporting information
- Jira ticket: https://tasks.opencraft.com/browse/BB-7556
- GitLab issue: #108 (closed)
Visual changes
Testing instructions
Step by step procedure
- Get local stack running with dummy data using
make oneshot
command. - Create a recurrence and let it run once.
- Open django shell using
make shell
andpython manage.py shell
. - Open logs in another shell using
make logs
- Run below snippet to see emails in logs
from django.core import mail
from workflow.tasks import *
from workflow.models import *
from datetime import timedelta
run = Run.objects.first()
with mail.get_connection() as conn:
send_pending_checklist_email_for_runs(run, conn, timedelta(1))
- Copy the email from logs and create a temporary html file to preview email in browser.