-
-
Notifications
You must be signed in to change notification settings - Fork 45
revert change to only count approved visits #3368
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
Conversation
📝 WalkthroughWalkthroughA conditional status check has been removed from the Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes The change is a single conditional removal affecting one method in one file. However, reviewers should verify that removing the status filter aligns with intended behavior for delivery counting and assess any downstream impacts on features or reports that depend on this count. Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/src/org/commcare/android/database/connect/models/ConnectJobRecord.java (1)
3-3: Remove unused import.After reverting the status check, the
STATUS_APPROVEDconstant is no longer used in this file. Consider removing this import for code cleanliness.Apply this diff to remove the unused import:
-import static org.commcare.connect.ConnectConstants.STATUS_APPROVED; - import android.content.Context;
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/src/org/commcare/android/database/connect/models/ConnectJobRecord.java(1 hunks)
🔇 Additional comments (1)
app/src/org/commcare/android/database/connect/models/ConnectJobRecord.java (1)
566-576: Verify the behavioral change and test coverage.The removal of the status check means
numberOfDeliveriesToday()now counts all deliveries for today, regardless of approval status. This affects the daily limit warning logic at line 626, where users may now see "daily max reached" warnings earlier (based on all submissions rather than just approved ones).Since this is a revert of PR #3286 based on the product decision in QA-8158, please ensure:
- The behavioral change has been thoroughly tested, especially the daily limit warning scenarios
- All places that depend on this count have been reviewed for consistency
- The change aligns with the expected product requirements
Run the following script to identify other locations that might use similar status-based filtering logic for deliveries:
Product Description
Reverts https://github.com/dimagi/commcare-android/pull/3286/files based on convo here
Labels and Review