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

kobotoolbox / kpi / 17990647490
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 24 Sep 2025 10:25PM UTC
Jobs 2
Files 862
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

24 Sep 2025 09:52PM UTC coverage: 81.232% (+0.008%) from 81.224%
17990647490

push

github

web-flow
feat(massEmails): parameterize users query functions in mass emails app DEV-956 (#6279)

### 📣 Summary
Added custom parameters for users query functions in the mass emails app

### 📖 Description
With the new model MassEmailQueryParam you can customize the parameters
passed to the user query functions in the mass emails app. To do this
successfully you have to check the function parameters names and their
type hints. For now this only supports the types (int, float, str),
which are easily converted. WARNING: If the value provided for the
parameter can't be converted to the type, it will leave the parameter
use the default value. All parameters MUST have a default value in case
they are not customized in the MassEmailConfig instance.

### 👀 Preview steps
1. Create a new mass email config in the django admin page
2. For testing purposes use the query called
`users_inactive_for_365_days`
3. Define a parameter with `name=days` and `value=2`, and save the email
config (or use another value for days, depending on you local env data,
you could check via the shell what users should be exported according to
their last_login)
4. Export the recipients list in the list view of the mass email configs
5. Check that the exported recipients list is correct

6918 of 10897 branches covered (63.49%)

20 of 22 new or added lines in 3 files covered. (90.91%)

26731 of 32907 relevant lines covered (81.23%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
74.51
3.58% kobo/apps/mass_emails/models.py
Jobs
ID Job ID Ran Files Coverage
1 17990647490.1 24 Sep 2025 10:25PM UTC 862
78.9
2 17990647490.2 24 Sep 2025 10:29PM UTC 862
81.21
Source Files on build 17990647490
  • Tree
  • List 862
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ba5b225b on github
  • Prev Build on main (#17984114087)
  • Next Build on main (#18004972995)
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