Skip to content

More filtering in dashboard #4751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 17, 2025
Merged

More filtering in dashboard #4751

merged 4 commits into from
Apr 17, 2025

Conversation

srugano
Copy link
Contributor

@srugano srugano commented Apr 9, 2025

Copy link

codecov bot commented Apr 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.15%. Comparing base (c44ef45) to head (f0be9fb).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4751      +/-   ##
===========================================
+ Coverage    86.14%   86.15%   +0.01%     
===========================================
  Files          586      586              
  Lines        36775    36775              
===========================================
+ Hits         31680    31684       +4     
+ Misses        5095     5091       -4     
Flag Coverage Δ
e2e 60.12% <100.00%> (-0.04%) ⬇️
unittests 84.65% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@srugano srugano marked this pull request as ready for review April 14, 2025 18:38
@johniak johniak requested a review from Copilot April 16, 2025 14:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (3)

src/hct_mis_api/apps/dashboard/services.py:36

  • Changing the filter to include both 'ACCEPTED' and 'FINISHED' statuses for total_payment_plans may affect aggregation logic. Confirm that this update aligns with the intended business rules.
total_payment_plans = Count("parent__id", filter=Q(parent__status__in=["ACCEPTED", "FINISHED"]), distinct=True)

src/hct_mis_api/apps/dashboard/services.py:143

  • Switching to a distinct count for 'reconciled' may lead to different aggregation results. Ensure that this modification accurately reflects the desired reconciliation logic.
reconciled=Count("pk", distinct=True, filter=Q(payment_verifications__isnull=False))

src/hct_mis_api/apps/dashboard/services.py:96

  • The addition of 'excluded=False' in the query should be verified to ensure the 'excluded' field is defined and behaves as expected in the data model.
excluded=False,

@srugano srugano merged commit 5440015 into develop Apr 17, 2025
13 checks passed
@srugano srugano deleted the feature/dashrefinement branch April 17, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants