Skip to content

chore!: remove deleteCustomSound Meteor method#40883

Open
nazabucciarelli wants to merge 1 commit into
release-9.0.0from
chore/remove-deleteCustomSound
Open

chore!: remove deleteCustomSound Meteor method#40883
nazabucciarelli wants to merge 1 commit into
release-9.0.0from
chore/remove-deleteCustomSound

Conversation

@nazabucciarelli

@nazabucciarelli nazabucciarelli commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Proposed changes (including videos or screenshots)

Issue(s)

CORE-2284 Remove deleteCustomSound Meteor method for 9.0.0

Steps to test or reproduce

Further comments

Summary by CodeRabbit

  • Breaking Changes
    • The custom sound deletion API has been removed. Integrations or client workflows that previously deleted custom sounds must be updated to use alternate approaches or updated APIs.

@nazabucciarelli nazabucciarelli added this to the 9.0.0 milestone Jun 10, 2026
@dionisio-bot

dionisio-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: be5fff8

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

This PR includes changesets to release 3 packages
Name Type
@rocket.chat/meteor Major
@rocket.chat/core-typings Major
@rocket.chat/rest-typings Major

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

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cae1992d-9a8e-4c42-8234-42de3fc18842

📥 Commits

Reviewing files that changed from the base of the PR and between 647e013 and be5fff8.

📒 Files selected for processing (3)
  • .changeset/shaggy-hats-behave.md
  • apps/meteor/app/custom-sounds/server/index.ts
  • apps/meteor/app/custom-sounds/server/methods/deleteCustomSound.ts
💤 Files with no reviewable changes (2)
  • apps/meteor/app/custom-sounds/server/methods/deleteCustomSound.ts
  • apps/meteor/app/custom-sounds/server/index.ts
✅ Files skipped from review due to trivial changes (1)
  • .changeset/shaggy-hats-behave.md
📜 Recent review details
⏰ 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). (8)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (4/5)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (4/4)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (2/4)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (3/5)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (1/4)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (1/5)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (2/5)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (3/4)

Walkthrough

Removes the deleteCustomSound Meteor method and its server import, and adds a changeset recording a major release for @rocket.chat/meteor that documents the method removal.

Changes

Remove deleteCustomSound Meteor method

Layer / File(s) Summary
Method removal and documentation
apps/meteor/app/custom-sounds/server/index.ts, .changeset/shaggy-hats-behave.md
Server index import no longer loads deleteCustomSound; a changeset marks @rocket.chat/meteor as a major release and records removal of the deleteCustomSound Meteor method.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • RocketChat/Rocket.Chat#40532: Extracts and refactors deleteCustomSound logic for a new endpoint; this PR removes the superseded Meteor method.

Suggested reviewers

  • ggazzo
  • KevLehman
  • gabriellsh
🚥 Pre-merge checks | ✅ 5
✅ 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 clearly and concisely summarizes the main change: removal of the deleteCustomSound Meteor method, which is directly reflected in all file modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • CORE-2284: Request failed with status code 401

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.changeset/shaggy-hats-behave.md:
- Around line 1-5: The changeset removed the deleteCustomSound server method but
client/UI and tests still call it, causing runtime/E2E failures; update callers
or restore a server endpoint that emits notify.deleteCustomSound. Either (A)
implement a replacement server API endpoint or Meteor method named
deleteCustomSound (matching existing callers) under the custom-sounds server
module so apps/meteor/client/views/admin/customSounds/EditSound.tsx
(useMethod('deleteCustomSound')) and
apps/meteor/tests/end-to-end/api/custom-sounds.ts continue to work and ensure it
emits notify.deleteCustomSound, or (B) migrate the client and tests to the new
deletion mechanism by replacing useMethod('deleteCustomSound') calls in
EditSound.tsx and method.call/deleteCustomSound calls in the E2E test with the
new API call (the new /v1 custom-sounds delete endpoint) and verify server
app/api/server/v1/custom-sounds registers the delete route and triggers
notify.deleteCustomSound for listeners; pick one approach and apply
consistently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 30d2281c-21c2-41d4-9850-55fe28ef23f6

📥 Commits

Reviewing files that changed from the base of the PR and between bb1ddd3 and 647e013.

📒 Files selected for processing (3)
  • .changeset/shaggy-hats-behave.md
  • apps/meteor/app/custom-sounds/server/index.ts
  • apps/meteor/app/custom-sounds/server/methods/deleteCustomSound.ts
💤 Files with no reviewable changes (2)
  • apps/meteor/app/custom-sounds/server/methods/deleteCustomSound.ts
  • apps/meteor/app/custom-sounds/server/index.ts
📜 Review details
⏰ 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). (4)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: CodeQL-Build
  • GitHub Check: Hacktron Security Check
  • GitHub Check: CodeQL-Build
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2026-03-16T21:50:37.589Z
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39676
File: .changeset/migrate-users-register-openapi.md:3-3
Timestamp: 2026-03-16T21:50:37.589Z
Learning: For changes related to OpenAPI migrations in Rocket.Chat/OpenAPI, when removing endpoint types and validators from rocket.chat/rest-typings (e.g., UserRegisterParamsPOST, /v1/users.register) document this as a minor changeset (not breaking) per RocketChat/Rocket.Chat-Open-API#150 Rule 7. Note that the endpoint type is re-exposed via a module augmentation .d.ts in the consuming package (e.g., packages/web-ui-registration/src/users-register.d.ts). In reviews, ensure the changeset clearly states: this is a non-breaking change, the major version should not be bumped, and the changeset reflects a minor version bump. Do not treat this as a breaking change during OpenAPI migrations.

Applied to files:

  • .changeset/shaggy-hats-behave.md

Comment thread .changeset/shaggy-hats-behave.md

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found across 3 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".changeset/shaggy-hats-behave.md">

<violation number="1" location=".changeset/shaggy-hats-behave.md:5">
P1: Removing the `deleteCustomSound` Meteor method without updating its callers will cause runtime failures. The admin UI (`EditSound.tsx`) still calls `useMethod('deleteCustomSound')` for sound deletion and E2E tests still invoke this method. Additionally, no replacement REST API endpoint (e.g., `custom-sounds.delete`) exists. Deletion functionality will be completely broken after this change lands.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@@ -0,0 +1,5 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1: Removing the deleteCustomSound Meteor method without updating its callers will cause runtime failures. The admin UI (EditSound.tsx) still calls useMethod('deleteCustomSound') for sound deletion and E2E tests still invoke this method. Additionally, no replacement REST API endpoint (e.g., custom-sounds.delete) exists. Deletion functionality will be completely broken after this change lands.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .changeset/shaggy-hats-behave.md, line 5:

<comment>Removing the `deleteCustomSound` Meteor method without updating its callers will cause runtime failures. The admin UI (`EditSound.tsx`) still calls `useMethod('deleteCustomSound')` for sound deletion and E2E tests still invoke this method. Additionally, no replacement REST API endpoint (e.g., `custom-sounds.delete`) exists. Deletion functionality will be completely broken after this change lands.</comment>

<file context>
@@ -0,0 +1,5 @@
+'@rocket.chat/meteor': major
+---
+
+Removes deleteCustomSound Meteor method
</file context>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can do this change on develop, not on this branch @nazabucciarelli

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.07%. Comparing base (1a6aafa) to head (be5fff8).

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           release-9.0.0   #40883      +/-   ##
=================================================
+ Coverage          70.05%   70.07%   +0.02%     
=================================================
  Files               3355     3355              
  Lines             129153   129153              
  Branches           22385    22404      +19     
=================================================
+ Hits               90475    90506      +31     
+ Misses             35384    35359      -25     
+ Partials            3294     3288       -6     
Flag Coverage Δ
unit 69.96% <ø> (+0.03%) ⬆️

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.

@ggazzo ggazzo requested review from a team as code owners June 11, 2026 18:42
@ggazzo ggazzo force-pushed the chore/remove-deleteCustomSound branch from 647e013 to be5fff8 Compare June 11, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants