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

akvo / akvo-mis / #626
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: feature/224-superadmin-can-see-all-submissions
DEFAULT BRANCH: main
Ran 18 May 2026 12:27PM UTC
Jobs 1
Files 109
Run time 1min
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

18 May 2026 12:21PM UTC coverage: 88.039% (+0.01%) from 88.026%
#626

Pull #215

coveralls-python

ifirmawan
[#214] Fix date range filter for flow-imported data in list API and zip download

- Fix `latest_child_activity` annotation to use `Coalesce(updated, created)`
  so flow-imported children with `updated=NULL` contribute their `created`
  date instead of NULL, preventing registrations with recent monitoring from
  being excluded by the date filter
- Fix `latest_child_form_subquery` ordering to use `Coalesce(updated, created)`
  so NULL-updated records are ranked by `created` rather than sorted first
- When `sort_by=latest_activity`, apply date filter to the annotated
  `latest_activity` field so registrations with recent monitoring children
  are included even when the registration itself predates `date_from`
- Add `filter_child_form_ids` param to `download_data` and
  `generate_data_sheet` to separate "which children determine parent
  inclusion" from "which children are merged into rows"
- In `_generate_zip_download`, pass `filter_child_form_ids=child_form_ids`
  when generating the registration sheet so the union approach
  (parent in range OR child in range) applies even though monitoring
  columns are not merged into the registration sheet
- Add tests: `test_null_updated_child_uses_created_for_latest_activity`,
  `test_date_filter_uses_latest_activity_when_sorting_by_it`,
  `test_date_filter_uses_created_when_not_sorting_by_latest_activity`,
  `test_zip_registration_included_when_monitoring_in_date_range`

[#214] Update date_from/date_to OpenAPI descriptions for latest_activity behaviour

Descriptions previously said "Filter data created on or after this date"
which is no longer accurate when sort_by=latest_activity filters on the
annotated latest_activity field instead of created.

šŸ¤– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Pull Request #215: [#214] Fix date range filter for flow-imported data in list API and z…

4983 of 5818 branches covered (85.65%)

Branch coverage included in aggregate %.

9628 of 10778 relevant lines covered (89.33%)

0.89 hits per line

Coverage Regressions

Lines Coverage āˆ† File
96
79.42
0.02% api/v1/v1_jobs/job.py
37
85.98
0.03% api/v1/v1_data/views.py
1
93.53
-1.0% utils/custom_generator.py
Jobs
ID Job ID Ran Files Coverage
1 #626.1 18 May 2026 12:27PM UTC 109
88.04
Source Files on build #626
  • Tree
  • List 109
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage āˆ† File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #215
  • PR Base - main (#)
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

© 2026 Coveralls, Inc