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

akvo / iwsims / #51
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: main
Ran 16 Jun 2026 12:03PM 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

16 Jun 2026 11:56AM UTC coverage: 87.926% (-0.2%) from 88.111%
#51

Pull #22

coveralls-python

ifirmawan
[#20] Replace FormData with MVLatestMonitoring in handle_progress

When no date_filters are set, use mv_latest_monitoring as the primary
queryset instead of FormData + correlated subquery annotation:

MV path (not date_filters):
- MVLatestMonitoring.filter(form_id=...) replaces
  FormData.filter(...).annotate(latest_id=subquery)
- parent_id, parent_name, latest_data_id come directly from the MV
- apply_administration_filter_mv on parent_administration_id (no FK)
- narrow_data_ids_by_criteria called directly with adapted field names
  (latest_data_id instead of latest_id, parent_id instead of id)
- Eliminates the FormData outer query + subquery join entirely
- Works in tests: mixin setUp always refreshes MVs before test runs

FormData fallback (date_filters set):
- mv_latest_monitoring stores absolute latest, not latest within range
- Correlated subquery still needed for correct date-range semantics
- apply_criteria/apply_parent_criteria used as before

Output unified to parent_id/parent_name/latest_data_id dict for both
paths — removes the .only('id','name') FormData instance iteration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Pull Request #22: [MV4V 4] Optimize Query Functions to Use MVs

5091 of 5951 branches covered (85.55%)

Branch coverage included in aggregate %.

9845 of 11036 relevant lines covered (89.21%)

0.89 hits per line

Coverage Regressions

Lines Coverage ∆ File
55
86.0
-2.99% api/v1/v1_visualization/values_functions.py
37
65.26
-5.6% api/v1/v1_visualization/progress_functions.py
24
89.09
3.01% api/v1/v1_visualization/functions.py
23
79.24
0.18% api/v1/v1_visualization/escalation_functions.py
1
98.43
-0.52% api/v1/v1_profile/models.py
Jobs
ID Job ID Ran Files Coverage
1 #51.1 16 Jun 2026 12:03PM UTC 109
87.93
Source Files on build #51
  • Tree
  • List 109
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #22
  • PR Base - feature/20-MV4V-1 (#)
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