Skip to content

chore!: remove insertOrUpdateSound and uploadCustomSound Meteor methods#40476

Merged
ggazzo merged 8 commits into
developfrom
chore/remove-sounds-insert-update-meteor-methods
May 13, 2026
Merged

chore!: remove insertOrUpdateSound and uploadCustomSound Meteor methods#40476
ggazzo merged 8 commits into
developfrom
chore/remove-sounds-insert-update-meteor-methods

Conversation

@nazabucciarelli
Copy link
Copy Markdown
Contributor

@nazabucciarelli nazabucciarelli commented May 11, 2026

Proposed changes (including videos or screenshots)

Issue(s)

CORE-2188 Remove insertOrUpdateSound and uploadCustomSound Meteor methods for 9.0.0

Steps to test or reproduce

Further comments

Summary by CodeRabbit

  • Changes
    • Server-side endpoints for inserting/updating and uploading custom sounds were removed; user-facing upload and save behavior remains unchanged.
  • Refactor
    • Internal wiring and type declarations for custom-sound handling were reorganized and consolidated.
  • Chores
    • Release metadata updated to indicate a major version impact for the affected package.

Review Change Stack

@nazabucciarelli nazabucciarelli added this to the 9.0.0 milestone May 11, 2026
@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot Bot commented May 11, 2026

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

  • This PR is targeting the wrong base branch. It should target 9.0.0, but it targets 8.5.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 11, 2026

🦋 Changeset detected

Latest commit: 1d9576c

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

This PR includes changesets to release 42 packages
Name Type
@rocket.chat/meteor Major
@rocket.chat/core-typings Major
@rocket.chat/rest-typings Major
@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 Major
@rocket.chat/gazzodown Major
@rocket.chat/http-router Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Major
@rocket.chat/ui-client Major
@rocket.chat/ui-contexts Major
@rocket.chat/ui-voip Major
@rocket.chat/web-ui-registration Major
@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/abac 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/network-broker Patch
@rocket.chat/omni-core-ee Patch
@rocket.chat/mock-providers Patch
@rocket.chat/instance-status Patch
@rocket.chat/omni-core Patch
@rocket.chat/server-fetch Patch
@rocket.chat/ui-video-conf Major
@rocket.chat/ui-composer 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
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 11, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Two DDP server methods are deleted from the custom-sounds module: insertOrUpdateSound (with its ICustomSoundData type) and uploadCustomSound. Their corresponding imports are removed from the server entry point, leaving only the delete and list method handlers registered.

Changes

Custom-Sounds DDP Method Removal

Layer / File(s) Summary
Lib: Type relocation
apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts
ICustomSoundData is now declared/exported in the lib with additional optional fields; insertOrUpdateSound logic unchanged.
Removed insertOrUpdateSound Method
apps/meteor/app/custom-sounds/server/methods/insertOrUpdateSound.ts
Complete file deletion removing the DDP method, exported ICustomSoundData, ServerMethods augmentation, manage-sounds authorization check, and helper delegation.
Removed uploadCustomSound Method
apps/meteor/app/custom-sounds/server/methods/uploadCustomSound.ts
Deletion of the uploadCustomSound DDP method and its ServerMethods type augmentation, permission enforcement, binary-to-buffer conversion, and call-through to the helper.
Lib: upload import update
apps/meteor/app/custom-sounds/server/lib/uploadCustomSound.ts
ICustomSoundData import updated to ./insertOrUpdateSound; upload logic unchanged.
Updated Server Entry Point
apps/meteor/app/custom-sounds/server/index.ts
Removed imports for insertOrUpdateSound and uploadCustomSound; retained startup, delete, and list handlers.
Changeset
.changeset/stale-meals-check.md
Declares a major release bump for @rocket.chat/meteor and documents removal of the two Meteor methods.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels

type: chore

🚥 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 directly summarizes the main change: removal of two specific Meteor methods (insertOrUpdateSound and uploadCustomSound).
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-2188: 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.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.62%. Comparing base (b6b04aa) to head (1d9576c).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #40476      +/-   ##
===========================================
+ Coverage    69.60%   69.62%   +0.01%     
===========================================
  Files         3320     3320              
  Lines       122512   122512              
  Branches     21840    21846       +6     
===========================================
+ Hits         85273    85297      +24     
+ Misses       33910    33893      -17     
+ Partials      3329     3322       -7     
Flag Coverage Δ
e2e 59.08% <ø> (-0.01%) ⬇️
e2e-api 47.11% <ø> (+0.86%) ⬆️
unit 70.33% <ø> (+<0.01%) ⬆️

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.

Copy link
Copy Markdown
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

🤖 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 `@apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts`:
- Around line 7-18: ICustomSoundData contains unused fields previousSound and
random; remove these properties from the type definition to keep the shape
minimal. Edit the ICustomSoundData declaration (the exported type) and delete
the previousSound and random members, ensuring references in insertOrUpdateSound
and uploadCustomSound continue to use _id, extension, and previousExtension;
also remove any redundant previousSound.extension usages if present and keep
previousExtension as the single source for prior-extension data.
🪄 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: 50c60f1d-c94f-41c0-98ed-590f611570f4

📥 Commits

Reviewing files that changed from the base of the PR and between aa125c3 and c84805a.

📒 Files selected for processing (2)
  • apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts
  • apps/meteor/app/custom-sounds/server/lib/uploadCustomSound.ts
✅ Files skipped from review due to trivial changes (1)
  • apps/meteor/app/custom-sounds/server/lib/uploadCustomSound.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). (3)
  • GitHub Check: 📦 Build Packages
  • GitHub Check: CodeQL-Build
  • GitHub Check: CodeQL-Build
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts
🧠 Learnings (3)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts

Comment thread apps/meteor/app/custom-sounds/server/lib/insertOrUpdateSound.ts
@nazabucciarelli nazabucciarelli added the stat: QA assured Means it has been tested and approved by a company insider label May 11, 2026
@nazabucciarelli nazabucciarelli requested a review from ggazzo May 11, 2026 14:30
@ggazzo
Copy link
Copy Markdown
Member

ggazzo commented May 11, 2026

missing changeset

@ggazzo ggazzo changed the title chore: remove insertOrUpdateSound and uploadCustomSound Meteor methods chore!: remove insertOrUpdateSound and uploadCustomSound Meteor methods May 11, 2026
…thub.com:RocketChat/Rocket.Chat into chore/remove-sounds-insert-update-meteor-methods
@ggazzo ggazzo merged commit e7f857e into develop May 13, 2026
47 checks passed
@ggazzo ggazzo deleted the chore/remove-sounds-insert-update-meteor-methods branch May 13, 2026 18:57
ggazzo added a commit that referenced this pull request May 13, 2026
ggazzo added a commit that referenced this pull request May 13, 2026
ggazzo added a commit that referenced this pull request May 13, 2026
ggazzo added a commit that referenced this pull request May 13, 2026
ggazzo added a commit that referenced this pull request May 14, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants