-
-
Notifications
You must be signed in to change notification settings - Fork 45
Additional delivery progress tweak #3013
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
…for better progress reporting).
📝 WalkthroughWalkthroughThe changes update the logic in the Sequence Diagram(s)sequenceDiagram
participant U as Caller
participant J as ConnectJobRecord
U->>J: getDaysRemaining()
activate J
J->>J: Calculate millis (end date diff + 86399999)
alt millis ≥ 0
J-->>U: Return calculated days
else
J-->>U: Return 0
end
deactivate J
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
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:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
https://dimagi.atlassian.net/browse/QA-7609?linkSource=email
Product Description
Small additional change to make sure "today" and "tomorrow" are used properly when reporting time remaining near the end of the opportunity.
Technical Summary
This change is about making sure we report 0 days remaining when the end date has passed, 1 day remaining when today is the last day, and 2 days remaining when tomorrow is the last day. Mostly, it's about dealing with the fact that the end date doesn't include a time (so it defaults to 00:00).
Feature Flag
Connect
Safety Assurance
Safety story
Simple math change.
Automated test coverage
None
QA Plan
QA already aware of and testing for this.
Labels and Review