-
-
Notifications
You must be signed in to change notification settings - Fork 45
Flagged and Rejected visits are getting counted from the total daily limit #3286
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 new public static constant, Sequence Diagram(s)sequenceDiagram
participant User
participant ConnectJobRecord
participant ConnectConstants
User->>ConnectJobRecord: numberOfDeliveriesToday()
ConnectJobRecord->>ConnectConstants: Use STATUS_APPROVED
ConnectJobRecord->>ConnectJobRecord: Filter deliveries by today's date and STATUS_APPROVED
ConnectJobRecord-->>User: Return count
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Suggested reviewers
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (17)📓 Common learnings📚 Learning: pr #3048 "phase 4 connect pr" introduces a substantial feature called "connect" to the commcare andr...Applied to files:
📚 Learning: in connectunlockfragment.java, opportunityid values are expected to always contain valid integer str...Applied to files:
📚 Learning: request codes used for startactivityforresult should be unique throughout the application, even if t...Applied to files:
📚 Learning: in the commcare android connect feature, the json object passed to `connectjobdeliveryflagrecord.fro...Applied to files:
📚 Learning: the `getdaysremaining()` method in `connectjobrecord` intentionally adds almost 24 hours (86399999 m...Applied to files:
📚 Learning: the json fields (status, unitname, slug, entityid, entityname, reason) in connectjobdeliveryrecord's...Applied to files:
📚 Learning: the date fields (projectenddate, lastupdate, lastlearnupdate, lastdeliveryupdate) in connectjobrecor...Applied to files:
📚 Learning: the date fields in connectjobrecordv2 (projectenddate, lastupdate, lastlearnupdate, lastdeliveryupda...Applied to files:
📚 Learning: the date fields (projectenddate, lastupdate, lastlearnupdate, lastdeliveryupdate) in connectjobrecor...Applied to files:
📚 Learning: in the connectjobdeliveryrecord class, the flags list is initialized as an empty list in the default...Applied to files:
📚 Learning: the connectloginjoblistmodel class in app/src/org/commcare/models/connect/connectloginjoblistmodel.j...Applied to files:
📚 Learning: the connectuserrecord class in commcare android uses @persisting annotations with sequential indices...Applied to files:
📚 Learning: in the commcare android connect messaging system (connectmessageadapter.java), the team prefers to l...Applied to files:
📚 Learning: in the commcare android connect feature, database operations like connectjobutils.upsertjob should b...Applied to files:
📚 Learning: in connectidpasswordverificationfragment, when creating a connectuserrecord, it's acceptable for pay...Applied to files:
📚 Learning: in connectdownloadingfragment.java and similar connect-related code, the team prefers to let "should...Applied to files:
🔇 Additional comments (9)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Product Description
Ticket -> https://dimagi.atlassian.net/browse/CCCT-843
Count should only increase for "approved" status
Technical Summary
Feature Flag
Safety Assurance
Safety story
Automated test coverage
QA Plan
Labels and Review
Release Note: Only count approved visits for indicating deliver progress.