-
Notifications
You must be signed in to change notification settings - Fork 29
Unallocate changes #93
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
WalkthroughThe changes refactor logic in the call closure and call allocation services. In call closure, language mapping and call type checks are consolidated and expanded for resetting allocation status. In call allocation, special handling for the "MO" role is removed, consolidating record retrieval to generic methods for all roles. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CallClosureService
participant Repository
User->>CallClosureService: closeCall(request)
CallClosureService->>CallClosureService: Check language mapping and call type
alt Not mapped & "introductory" or ANM
CallClosureService->>Repository: Reset allocation status, call status, user ID, attempts
end
CallClosureService->>Repository: Update further call requirement if flag is non-null
CallClosureService-->>User: Return response
sequenceDiagram
participant System
participant CallAllocationService
participant Repository
System->>CallAllocationService: moveAllocatedCallsToBin(role, recordType)
alt Any role (including "MO")
CallAllocationService->>Repository: getAllocatedRecordsUserByRecordTypeAndPhoneTypeMother/Child
end
CallAllocationService-->>System: Complete bin movement
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)src/main/java/com/iemr/ecd/service/associate/CallClosureImpl.java (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (3)
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
|



📋 Description
JIRA ID:
Please provide a summary of the change and the motivation behind it. Include relevant context and details.
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit