Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This PR adds database-level handling for grants where Testing & CoverageMissing test coverage: The PR doesn't add tests for the edge case it's fixing (grants with Add a test case like: def test_grant_summary_with_null_pending_status():
conference = ConferenceFactory()
GrantFactory.create_batch(
3,
conference=conference,
status="approved",
pending_status=None # This is the edge case
)
summary = GrantSummary().calculate(conference_id=conference.id)
assert summary["status_totals"]["approved"] == 3Architecture & DesignInconsistent implementation: The fix handles most aggregations at the database level using
The reimbursement approach triggers additional queries since each PerformanceN+1 query in _aggregate_financial_data_by_status: Line 169 filters grants by You need to either:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4582 +/- ##
=======================================
Coverage 92.52% 92.52%
=======================================
Files 357 357
Lines 10690 10692 +2
Branches 812 812
=======================================
+ Hits 9891 9893 +2
Misses 687 687
Partials 112 112 🚀 New features to boost your workflow:
|
What
ToDo