Skip to content

Conversation

@alfredodelfabro
Copy link
Member

@alfredodelfabro alfredodelfabro commented Mar 31, 2025

Proposed changes (including videos or screenshots)

Issue(s)

CTZ-33

Steps to test or reproduce

Further comments

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Mar 31, 2025

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

@changeset-bot
Copy link

changeset-bot bot commented Mar 31, 2025

🦋 Changeset detected

Latest commit: 066588d

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

This PR includes changesets to release 36 packages
Name Type
@rocket.chat/apps-engine Patch
@rocket.chat/meteor Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/core-typings Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/rest-typings Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch 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/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/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration 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

@alfredodelfabro alfredodelfabro added this to the 7.5.0 milestone Mar 31, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 31, 2025

PR Preview Action v1.6.0

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

Built to branch gh-pages at 2025-04-02 13:41 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.64%. Comparing base (b204610) to head (066588d).
Report is 1 commits behind head on release-7.5.0.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff               @@
##           release-7.5.0   #35667   +/-   ##
==============================================
  Coverage          59.64%   59.64%           
==============================================
  Files               2832     2832           
  Lines              68934    68934           
  Branches           15287    15287           
==============================================
  Hits               41113    41113           
  Misses             25143    25143           
  Partials            2678     2678           
Flag Coverage Δ
unit 75.64% <ø> (ø)

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@scuciatto scuciatto modified the milestones: 7.5.0, 7.6.0 Apr 1, 2025
@d-gubert d-gubert modified the milestones: 7.6.0, 7.5.0 Apr 1, 2025
@alfredodelfabro alfredodelfabro marked this pull request as ready for review April 1, 2025 21:29
Copilot AI review requested due to automatic review settings April 1, 2025 21:29
@alfredodelfabro alfredodelfabro requested a review from a team as a code owner April 1, 2025 21:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a regression issue with error messaging in the creator methods by enhancing error handling in the ModifyCreator class and adding comprehensive tests for various error scenarios.

  • Updated error handling in ModifyCreator to differentiate between known and unknown error objects.
  • Added tests for getLivechatCreator, getUploadCreator, getEmailCreator, and getContactCreator to verify consistent error throwing behavior.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/apps-engine/deno-runtime/lib/accessors/tests/ModifyCreator.test.ts Added tests to ensure proper error propagation and handling across various creator methods.
packages/apps-engine/deno-runtime/lib/accessors/modify/ModifyCreator.ts Updated catch blocks in creator methods to handle Error instances and error objects with a message property.
Comments suppressed due to low confidence (1)

packages/apps-engine/deno-runtime/lib/accessors/modify/ModifyCreator.ts:68

  • [nitpick] When the error object lacks a 'message' property, directly wrapping 'err.error' may produce an uninformative default message such as '[object Object]'. Consider providing a more descriptive default error message or a fallback string.
throw new Error(err.error);

@alfredodelfabro alfredodelfabro changed the title regression: thows error message from error fix: throws errors for apps properly Apr 1, 2025
d-gubert
d-gubert previously approved these changes Apr 2, 2025
@sampaiodiego sampaiodiego added the stat: QA assured Means it has been tested and approved by a company insider label Apr 2, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Apr 2, 2025
@kodiakhq kodiakhq bot merged commit c618263 into release-7.5.0 Apr 2, 2025
11 of 12 checks passed
@kodiakhq kodiakhq bot deleted the regression_error_livechat_creator branch April 2, 2025 13:30
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.

5 participants