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

feat: use contact's name on as omnichannel rooms' display name #33893

Merged

Conversation

pierre-lehnen-rc
Copy link
Contributor

@pierre-lehnen-rc pierre-lehnen-rc commented Nov 5, 2024

Proposed changes (including videos or screenshots)

Issue(s)

SCI-114

Steps to test or reproduce

Further comments

Copy link
Contributor

dionisio-bot bot commented Nov 5, 2024

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Nov 5, 2024

⚠️ No Changeset found

Latest commit: 3591e0b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pierre-lehnen-rc pierre-lehnen-rc added this to the 7.1.0 milestone Nov 5, 2024
Copy link
Contributor

github-actions bot commented Nov 5, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33893/
on branch gh-pages at 2024-11-06 17:33 UTC

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.75%. Comparing base (0977ef1) to head (3591e0b).
Report is 4 commits behind head on feat/single-contact-id.

Additional details and impacted files

Impacted file tree graph

@@                    Coverage Diff                     @@
##           feat/single-contact-id   #33893      +/-   ##
==========================================================
- Coverage                   75.76%   75.75%   -0.01%     
==========================================================
  Files                         504      504              
  Lines                       21660    21662       +2     
  Branches                     5354     5355       +1     
==========================================================
+ Hits                        16410    16411       +1     
  Misses                       4597     4597              
- Partials                      653      654       +1     
Flag Coverage Δ
unit 75.75% <80.00%> (-0.01%) ⬇️

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

@dougfabris dougfabris force-pushed the feat/single-contact-id branch from a738619 to 0668978 Compare November 6, 2024 17:24
@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as ready for review November 6, 2024 18:53
@pierre-lehnen-rc pierre-lehnen-rc requested review from a team as code owners November 6, 2024 18:53
Comment on lines +607 to +608
const visitor = await createVisitor();
const room = await createLivechatRoom(visitor.token);
Copy link
Member

Choose a reason for hiding this comment

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

What about using let (globally in this describe) and deleting the visitor and closing the room on an afterEach instead?
Not a big deal, though

Comment on lines +2795 to +2797
if (!Object.keys(update).length) {
throw new Error('error-invalid-operation');
}
Copy link
Member

Choose a reason for hiding this comment

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

It'd be nice if we had some sort of AtLeastOne type in core-typings so that this kind of error could be avoided
But also not a big deal, we can keep it like this if we need to move fast

@pierre-lehnen-rc pierre-lehnen-rc merged commit 118232e into feat/single-contact-id Nov 6, 2024
49 checks passed
@pierre-lehnen-rc pierre-lehnen-rc deleted the feat/sci/use-contact-name-on-rooms branch November 6, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants