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: room converter errors out when converting livechat room closed by the visitor #35107

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

d-gubert
Copy link
Member

@d-gubert d-gubert commented Feb 3, 2025

Proposed changes (including videos or screenshots)

If the closer of a livechat room is the visitor, the closedBy property of the room will contain the visitor's id, not the user's - which crashed the conversion from app format to core format as the converter was always trying to fetch a user from the DB.

The behavior now checks for the closer property to correctly assign the value to the closedBy property when converting back from the app.

Issue(s)

Steps to test or reproduce

Further comments

Further changes will be done to types, however to make this a safely "backportable" PR, they will be done separately

Copy link
Contributor

dionisio-bot bot commented Feb 3, 2025

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

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.22%. Comparing base (1152961) to head (183af50).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #35107   +/-   ##
========================================
  Coverage    59.22%   59.22%           
========================================
  Files         2824     2824           
  Lines        68071    68071           
  Branches     15153    15153           
========================================
  Hits         40315    40315           
  Misses       24924    24924           
  Partials      2832     2832           
Flag Coverage Δ
unit 75.17% <ø> (ø)

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

Copy link
Contributor

github-actions bot commented Feb 3, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35107/

Built to branch gh-pages at 2025-02-03 20:38 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@d-gubert d-gubert marked this pull request as ready for review February 3, 2025 22:56
@d-gubert d-gubert requested a review from a team as a code owner February 3, 2025 22:56
@d-gubert d-gubert added this to the 7.4.0 milestone Feb 3, 2025
Copy link
Member

@KevLehman KevLehman left a comment

Choose a reason for hiding this comment

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

A changeset maybe? :awesome:

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.

2 participants