• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 14091655305
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1497-show-most-recently-created-qual-answer
DEFAULT BRANCH: master
Ran 26 Mar 2025 07:55PM UTC
Jobs 1
Files 637
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Mar 2025 07:16PM UTC coverage: 80.891% (+0.07%) from 80.826%
14091655305

push

github

web-flow
feat(massEmail): create/register celery tasks mass emails TASK-750 (#5574)

### 📣 Summary
Celery task and admin action to send emails for mass email
configurations asynchronously by user request on the admin screen.


### 📖 Description
The mass email configs admin action "Send emails" triggers a celery task
for each email config that creates or uses an existing mass email job
that is associated to a set of mass email records. The records are
linked to a user, they start with enqueued status and when they are
processed by the celery task, their status is set to sent or failed.
This is work in progress, future PRs will enable more functionality.


### 👀 Preview steps
1. (Optional) set the email backend: `EMAIL_BACKEND =
'django.core.mail.backends.filebased.EmailBackend'` to debug
2. Go to the Mass email configs admin page
3. Create a new mass email config instance
4. On the mass email configs admin page enable the checkbox to select
the new mass email config, then in the action dropdown select "Send
emails" and click on "Go"
5. Check that the emails were sent in the emails folder
(kpi_home/emails/)
6. Check the logs at `kobo-docker/log/kpi/celery_kpi_worker.log` and
ensure that they mention the emails sent.

---------

Signed-off-by: Guillermo <lgar89@gmail.com>

6057 of 9627 branches covered (62.92%)

95 of 101 new or added lines in 3 files covered. (94.06%)

23117 of 28578 relevant lines covered (80.89%)

0.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
94.39
-5.61% kobo/apps/mass_emails/tasks.py
Jobs
ID Job ID Ran Files Coverage
1 14091655305.1 26 Mar 2025 07:55PM UTC 637
80.89
Source Files on build 14091655305
  • Tree
  • List 637
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 9d6b0293 on github
  • Prev Build on main (#14084389328)
  • Next Build on main (#14102772322)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc