-
Notifications
You must be signed in to change notification settings - Fork 13k
refactor: Remove afterTakeInquiry callback
#35970
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
|
Looks like this PR is ready to merge! 🎉 |
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35970 +/- ##
===========================================
+ Coverage 64.68% 64.72% +0.03%
===========================================
Files 3244 3244
Lines 95397 95393 -4
Branches 17855 17899 +44
===========================================
+ Hits 61710 61739 +29
+ Misses 30796 30761 -35
- Partials 2891 2893 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
apps/meteor/ee/app/livechat-enterprise/server/lib/AutoTransferChatScheduler.ts
Outdated
Show resolved
Hide resolved
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
apps/meteor/ee/app/livechat-enterprise/server/hooks/afterTakeInquiry.ts
Outdated
Show resolved
Hide resolved
apps/meteor/ee/app/livechat-enterprise/server/hooks/afterTakeInquiry.ts
Outdated
Show resolved
Hide resolved
apps/meteor/ee/app/livechat-enterprise/server/lib/AutoTransferChatScheduler.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Diego Sampaio <[email protected]>
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Proposed changes (including videos or screenshots)
Issue(s)
https://rocketchat.atlassian.net/browse/CTZ-117
Steps to test or reproduce
Further comments
This pull request refactors the handling of the
afterTakeInquirylogic in the Rocket.Chat repository. The changes involve removing the genericcallbacks.runAsyncmechanism and replacing it with a direct function import and call. Specifically, theafterTakeInquiryfunction is now imported from./hooksand called directly after an agent is assigned in theRoutingManager.tsfile. Additionally, a newafterTakeInquiryfunction is added inhooks.tsto handle post-processing tasks, such as triggering a CRM webhook if configured. In theafterTakeInquiry.tsfile within the livechat-enterprise module, the hook is refactored to use the.patchmethod instead of the legacycallbacks.add. This refactoring introduces new logic to manage last chatted agent routing, schedule auto-transfer for chats, and stop queue inactivity monitoring when an inquiry is taken, based on the respective feature settings.