fix: Livechat_accept_chats_with_no_agents omnichannel setting not being respected#39692
fix: Livechat_accept_chats_with_no_agents omnichannel setting not being respected#39692nazabucciarelli wants to merge 68 commits intodevelopfrom
Livechat_accept_chats_with_no_agents omnichannel setting not being respected#39692Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
🦋 Changeset detectedLatest commit: 0205f92 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #39692 +/- ##
===========================================
- Coverage 70.24% 70.21% -0.03%
===========================================
Files 3281 3281
Lines 116915 116915
Branches 20754 20703 -51
===========================================
- Hits 82122 82088 -34
- Misses 31512 31542 +30
- Partials 3281 3285 +4
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…livechat-offline-agent-assignment
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
…cketChat/Rocket.Chat into fix/livechat-offline-agent-assignment
…tweak minor things
db892b5 to
0205f92
Compare
|
To make it easier for review, I've created another PR but against the branch it depends to: #40175 |
Important Note for reviewers
This PR depends on / is built on top of PR #39495. Because of this, you will see extra files (the changeset file, for instance) and commits included in the diff. Please focus your review exclusively on the logic and tests related to the
Livechat_accept_chats_with_no_agentssetting. (Once the base PR is merged, the diff will automatically update to show only these specific changes).Proposed changes (including videos or screenshots)
acceptChatsWithNoAgentsto methods that fetch available agents. It basically passes the value of theLivechat_enabled_when_agent_offlinesetting downstream, to be able to process it and resolve offline agents to the visitor in case its value is true. This was made since after fixing the query, I've found out thatLivechat_enabled_when_agent_offlinewasn't being respected, and previously it "worked" (and note the quotation marks) because our query wasn't filtering out offline users at all.Issue(s)
CORE-1972 Fix 'Livechat_accept_chats_with_no_agents' omnichannel setting not being respected
Steps to test or reproduce
Before testing, you'd need to have a EE license and to create at least two agents and a department with them. Also, you'll need to go to Settings -> Omnichannel -> Queue Management, enable the Waiting queue option and then set Max. number of simultaneous chats to only 1.
Livechat_accept_chats_with_no_agentsis enabled, the new visitor isn't queued, but routed to the offline agent.Livechat_accept_chats_with_no_agentssetting.Further comments