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

kobotoolbox / kpi / 15687580355
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 16 Jun 2025 06:02PM UTC
Jobs 2
Files 653
Run time 3min
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

16 Jun 2025 05:23PM UTC coverage: 81.019% (-0.03%) from 81.053%
15687580355

push

github

web-flow
feat(massEmails): download a CSV of recipients from the last 30 days DEV-587 (#5843)

### đŸ“Ŗ Summary
Allow superusers to download a report of recipients of all emails for
the past 30 days.

### 💭 Notes
Adds a new resource for exporting a report of all users who received a
given email or emails. It only looks back 30 days to avoid massively
long queries. In an ideal world this would be configurable but it proved
very difficult to hook into the import-export-celery process to insert
this kind of configuration, and I thought it would be worth it to have
the same process for looking at both expected and actual recipients.
Also adds the MassEmailConfig uid to the expected recipients export for
consistency.


### 👀 Preview steps
Use MailHog or file-based emails for easiest testing

1. â„šī¸ have a super user account
2. Ensure there is at least one email in `MASS_EMAIL_TEST_EMAILS`
3. Create a new MassEmailConfig using the test_users query and set it to
live (frequency doesn't matter, though it might be easier to see results
if you set it to daily)
4. Wait for the email to send at least once
5. In the list view, select the mass email config you just created and
select the `Export with celery` action
6. In the ExportJob form, select "Last 30 days recipients resource" and
save
7. đŸŸĸ You should receive an email with a link to the ExportJob, which
will in turn have a link to download a csv with information about all
the recipients of the email

6278 of 9953 branches covered (63.08%)

9 of 23 new or added lines in 1 file covered. (39.13%)

1 existing line in 1 file now uncovered.

23967 of 29582 relevant lines covered (81.02%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
14
70.93
-9.07% kobo/apps/mass_emails/models.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
70.93
-9.07% kobo/apps/mass_emails/models.py
Jobs
ID Job ID Ran Files Coverage
1 15687580355.1 16 Jun 2025 06:02PM UTC 653
81.0
2 15687580355.2 16 Jun 2025 06:02PM UTC 653
78.93
Source Files on build 15687580355
  • Tree
  • List 653
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7607d1f5 on github
  • Prev Build on main (#15618414823)
  • Next Build on main (#15707209815)
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