Skip to content

Conversation

@lucas-a-pelegrino
Copy link
Member

@lucas-a-pelegrino lucas-a-pelegrino commented Dec 1, 2025

Proposed changes (including videos or screenshots)

This PR removes the deprecated meteor method; livechat:removeMonitor

Issue(s)

CORE-1415

Steps to test or reproduce

Further comments

Summary by CodeRabbit

  • Refactor
    • Removed the deprecated livechat:removeMonitor method. Applications using this functionality should implement alternative approaches for managing livechat monitors.

✏️ Tip: You can customize this high-level summary in your review settings.

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Dec 1, 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

@changeset-bot
Copy link

changeset-bot bot commented Dec 1, 2025

🦋 Changeset detected

Latest commit: 026f4d0

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

This PR includes changesets to release 39 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground 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/http-router Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration 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/federation-matrix Patch
@rocket.chat/license Patch
@rocket.chat/media-calls Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/omni-core-ee Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/instance-status Patch
@rocket.chat/omni-core 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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 1, 2025

Walkthrough

This pull request removes the deprecated Meteor server method livechat:removeMonitor by deleting the method implementation file, removing its import from the enterprise livechat server index, and adding a changeset to document the removal as a patch version for @rocket.chat/meteor.

Changes

Cohort / File(s) Change Summary
Changeset documentation
\.changeset/rotten-bees-behave\.md
New changeset file added marking a patch for @rocket.chat/meteor with removal of deprecated livechat:removeMonitor method
Livechat enterprise server cleanup
apps/meteor/ee/app/livechat-enterprise/server/index\.ts
Removed import of ./methods/removeMonitor module
Deprecated method removal
apps/meteor/ee/app/livechat-enterprise/server/methods/removeMonitor\.ts
File deleted; removes Meteor server method implementation for livechat:removeMonitor(username: string): boolean including deprecation logger, permission check, argument validation, and delegation to LivechatEnterprise.removeMonitor

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

This is a straightforward removal of deprecated code with a consistent, repetitive pattern across a minimal set of files. No complex logic changes or refactoring required—simply deletion and import cleanup.

Possibly related PRs

  • RocketChat/Rocket.Chat#37688: Touches the same livechat:removeMonitor API surface to add deprecation and replacement REST endpoint
  • RocketChat/Rocket.Chat#37168: Related livechat removeMonitor server flow modifications including deprecation logging and REST endpoint introduction

Suggested labels

stat: ready to merge, stat: QA assured

Suggested reviewers

  • tassoevan
  • KevLehman

Poem

🐰✨ A deprecated method bids farewell,
Old code removed, the story we tell,
LivechatEnterprise sheds its worn skin,
Cleaner APIs, let new ones begin!
Hop hop! The cleanup is done! 🌿

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title accurately describes the main change: removal of the deprecated livechat:removeMonitor method, which is confirmed by all changes in the changeset.
Linked Issues check ✅ Passed The pull request removes the deprecated livechat:removeMonitor method as indicated by the linked issue CORE-1415, completing the stated objective.
Out of Scope Changes check ✅ Passed All changes are scoped to removing the livechat:removeMonitor method: the changeset file, import removal, and method deletion are all directly related to the stated objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/v8/CORE-1415

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

📦 Docker Image Size Report

📈 Changes

Service Current Baseline Change Percent
sum of all images 1.1GiB 1.1GiB +8.2MiB
rocketchat 357MiB 349MiB +8.5MiB
omnichannel-transcript-service 132MiB 132MiB -90KiB
queue-worker-service 132MiB 132MiB -91KiB
ddp-streamer-service 126MiB 126MiB -38KiB
account-service 113MiB 113MiB -37KiB
presence-service 111MiB 111MiB -38KiB
authorization-service 111MiB 111MiB -38KiB

📊 Historical Trend

---
config:
  theme: "dark"
  xyChart:
    width: 900
    height: 400
---
xychart
  title "Image Size Evolution by Service (Last 30 Days + This PR)"
  x-axis ["11/15 22:28", "11/16 01:28", "11/17 23:50", "11/18 22:53", "11/19 23:02", "11/21 16:49", "11/24 17:34", "11/27 22:32", "11/28 19:05", "12/01 23:01", "12/02 21:57", "12/03 21:00", "12/04 18:17", "12/05 21:56", "12/08 20:15", "12/09 22:17", "12/10 13:41", "12/10 14:08 (PR)"]
  y-axis "Size (GB)" 0 --> 0.5
  line "account-service" [0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11]
  line "authorization-service" [0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11]
  line "ddp-streamer-service" [0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12]
  line "omnichannel-transcript-service" [0.14, 0.14, 0.14, 0.14, 0.14, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13]
  line "presence-service" [0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11]
  line "queue-worker-service" [0.14, 0.14, 0.14, 0.14, 0.14, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13]
  line "rocketchat" [0.36, 0.36, 0.35, 0.35, 0.35, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.35]
Loading

Statistics (last 17 days):

  • 📊 Average: 1.5GiB
  • ⬇️ Minimum: 1.2GiB
  • ⬆️ Maximum: 1.6GiB
  • 🎯 Current PR: 1.1GiB
ℹ️ About this report

This report compares Docker image sizes from this build against the develop baseline.

  • Tag: pr-37662
  • Baseline: develop
  • Timestamp: 2025-12-10 14:08:19 UTC
  • Historical data points: 17

Updated: Wed, 10 Dec 2025 14:08:20 GMT

@ggazzo ggazzo force-pushed the release-8.0.0 branch 6 times, most recently from 590f91c to 538b89b Compare December 9, 2025 13:32
@ggazzo ggazzo added this to the 8.0.0 milestone Dec 10, 2025
@ggazzo ggazzo force-pushed the chore/v8/CORE-1415 branch from 86ff8a5 to 026f4d0 Compare December 10, 2025 13:50
@ggazzo ggazzo marked this pull request as ready for review December 10, 2025 13:51
@ggazzo ggazzo requested a review from a team as a code owner December 10, 2025 13:51
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 70ac0c9 and 026f4d0.

📒 Files selected for processing (3)
  • .changeset/rotten-bees-behave.md (1 hunks)
  • apps/meteor/ee/app/livechat-enterprise/server/index.ts (0 hunks)
  • apps/meteor/ee/app/livechat-enterprise/server/methods/removeMonitor.ts (0 hunks)
💤 Files with no reviewable changes (2)
  • apps/meteor/ee/app/livechat-enterprise/server/methods/removeMonitor.ts
  • apps/meteor/ee/app/livechat-enterprise/server/index.ts
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: rodrigok
Repo: RocketChat/Rocket.Chat PR: 36991
File: apps/meteor/server/services/federation/infrastructure/rocket-chat/adapters/Settings.ts:219-221
Timestamp: 2025-09-19T15:15:04.642Z
Learning: The Federation_Matrix_homeserver_domain setting in apps/meteor/server/services/federation/infrastructure/rocket-chat/adapters/Settings.ts is part of the old federation system and is being deprecated/removed, so configuration issues with this setting should not be flagged for improvement.
📚 Learning: 2025-09-19T15:15:04.642Z
Learnt from: rodrigok
Repo: RocketChat/Rocket.Chat PR: 36991
File: apps/meteor/server/services/federation/infrastructure/rocket-chat/adapters/Settings.ts:219-221
Timestamp: 2025-09-19T15:15:04.642Z
Learning: The Federation_Matrix_homeserver_domain setting in apps/meteor/server/services/federation/infrastructure/rocket-chat/adapters/Settings.ts is part of the old federation system and is being deprecated/removed, so configuration issues with this setting should not be flagged for improvement.

Applied to files:

  • .changeset/rotten-bees-behave.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: 📦 Build Packages
  • GitHub Check: CodeQL-Build
  • GitHub Check: CodeQL-Build

Comment on lines +1 to +3
---
"@rocket.chat/meteor": patch
---
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Reconsider the version bump level for removing a deprecated method.

Removing the livechat:removeMonitor method is a breaking change—any code still consuming this deprecated method will fail at runtime. Since this is a breaking change being released on release-8.0.0 (a major version branch), the changeset should document this as a major version bump, not patch.

Apply this diff to correct the version bump level:

  ---
- "@rocket.chat/meteor": patch
+ "@rocket.chat/meteor": major
  ---
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
---
"@rocket.chat/meteor": patch
---
---
"@rocket.chat/meteor": major
---
🤖 Prompt for AI Agents
.changeset/rotten-bees-behave.md lines 1-3: the changeset currently marks
"@rocket.chat/meteor" as a patch but the removal of the deprecated
livechat:removeMonitor is a breaking change — update the changeset frontmatter
to use a "major" bump for "@rocket.chat/meteor" (replace "patch" with "major")
and save/commit the changeset so the release tooling will publish a major
release.

@ggazzo ggazzo merged commit 64488e9 into release-8.0.0 Dec 10, 2025
43 of 44 checks passed
@ggazzo ggazzo deleted the chore/v8/CORE-1415 branch December 10, 2025 14:30
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.

3 participants