Skip to content
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

fix: LivechatSessionTaken webhook event called without agent param #33209

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

KevLehman
Copy link
Contributor

@KevLehman KevLehman commented Sep 4, 2024

Proposed changes (including videos or screenshots)

Basically, the call to assignAgent was updating the room object as expected, but when calling afterTakeInquiry callback we were passing the room before it was updated.

Issue(s)

https://rocketchat.atlassian.net/browse/SUP-654

Steps to test or reproduce

Further comments

I'm planning to spin up a webhook.test docker image to test this one but probably in the future 😬

Copy link
Contributor

dionisio-bot bot commented Sep 4, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Sep 4, 2024

🦋 Changeset detected

Latest commit: 57c126c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 28 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/models Patch
@rocket.chat/instance-status Patch

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

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.84%. Comparing base (6a3c25c) to head (57c126c).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #33209      +/-   ##
===========================================
- Coverage    59.85%   59.84%   -0.01%     
===========================================
  Files         2554     2554              
  Lines        63008    63105      +97     
  Branches     14129    14146      +17     
===========================================
+ Hits         37711    37766      +55     
- Misses       22890    22924      +34     
- Partials      2407     2415       +8     
Flag Coverage Δ
unit 77.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@KevLehman KevLehman marked this pull request as ready for review September 4, 2024 17:51
@KevLehman KevLehman requested a review from a team as a code owner September 4, 2024 17:51
@KevLehman KevLehman added this to the 6.13 milestone Sep 4, 2024
MarcosSpessatto
MarcosSpessatto previously approved these changes Sep 5, 2024
ggazzo
ggazzo previously requested changes Sep 5, 2024
apps/meteor/app/livechat/server/lib/RoutingManager.ts Outdated Show resolved Hide resolved
Copy link
Member

@MarcosSpessatto MarcosSpessatto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way of adding tests? Just saw the description

@sophia-devs
Copy link

Can we get an update on this?

@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label Sep 18, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Sep 18, 2024
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Sep 18, 2024
@KevLehman KevLehman added the stat: ready to merge PR tested and approved waiting for merge label Sep 18, 2024
Copy link
Contributor

github-actions bot commented Sep 18, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-09-18 18:25 UTC

@kodiakhq kodiakhq bot merged commit d0595a3 into develop Sep 18, 2024
49 checks passed
@kodiakhq kodiakhq bot deleted the fix/livechat-session-taken-missing-agent branch September 18, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants