Skip to content

chore: log deprecation for unused DDP methods without a REST replacement#40657

Draft
ggazzo wants to merge 1 commit into
developfrom
chore/ddp-deprecation-no-replacement
Draft

chore: log deprecation for unused DDP methods without a REST replacement#40657
ggazzo wants to merge 1 commit into
developfrom
chore/ddp-deprecation-no-replacement

Conversation

@ggazzo
Copy link
Copy Markdown
Member

@ggazzo ggazzo commented May 22, 2026

Summary

Adds methodDeprecationLogger.method(name, '9.0.0', []) to every orphan Meteor (DDP) method that does not have a REST endpoint to migrate callers to. The log line warns external clients that the method will be removed in 9.0.0 without pointing at a substitute.

Companion PR layout:

Used methods without a REST replacement are not in this PR. The deprecation logger throws under TEST_MODE, so deprecating a live method breaks the test suite. Those methods either need a new REST endpoint first or stay registered until 9.0.0 cleanup.

Scope

71 deprecation calls across 62 files. Each call sits above a // @deprecated JSDoc on the implementation so editors strike through the method name. Files already had their imports pruned and were not deleted (the implementations still ship — only the log line is new).

Caveats

Test plan

  • CI test suites stay green (no live methods deprecated).
  • Spot-check the listed methods against external SDK usage to make sure the no-replacement message is accurate.

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot Bot commented May 22, 2026

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

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

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 22, 2026

⚠️ No Changeset found

Latest commit: 34fc11c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 22, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e9e9ba02-d9da-4696-aec6-12634e5dedb7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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 22, 2026

Codecov Report

❌ Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.65%. Comparing base (8e5f185) to head (34fc11c).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #40657   +/-   ##
========================================
  Coverage    69.64%   69.65%           
========================================
  Files         3339     3339           
  Lines       123269   123295   +26     
  Branches     21993    21961   -32     
========================================
+ Hits         85854    85881   +27     
- Misses       34045    34057   +12     
+ Partials      3370     3357   -13     
Flag Coverage Δ
e2e 59.21% <ø> (+<0.01%) ⬆️
e2e-api 46.70% <0.00%> (+0.73%) ⬆️
unit 70.45% <50.00%> (+<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.

@ggazzo ggazzo changed the title chore: log deprecation for DDP methods without a REST replacement chore: log deprecation for unused DDP methods without a REST replacement May 22, 2026
@ggazzo ggazzo force-pushed the chore/ddp-deprecation-no-replacement branch 2 times, most recently from 9b19f90 to 57465b2 Compare May 26, 2026 12:25
ggazzo added a commit that referenced this pull request May 26, 2026
… replacement

Audit cross-check against /v1/ routes found 33 more orphan methods that
already have an equivalent REST endpoint. Adding the deprecation log
ensures any runtime caller (server-side, SDKs, mobile) sees the
warning before the method is removed in 9.0.0.

Moved from #40657 (originally classified 'no REST replacement') after
re-validating each entry against packages/rest-typings and
apps/meteor/app/api/server/v1.
Adds methodDeprecationLogger.method('NAME', '9.0.0', []) inside each
Meteor.methods body for orphan DDP methods that genuinely lack a
REST equivalent. Methods covered (26 total in 21 files):

cloud:* (5 OAuth/registration internals), crowd_*, addSamlService,
addWebdavAccountByToken, botRequest, checkFederationConfiguration,
getRoomJoinCode (joinCode field not exposed via REST), getS3FileUrl,
joinDefaultChannels, loadLocale, messages/get (publication, not
method), OAuth.retrieveCredential (iframe-login), OEmbedCacheCleanup,
openRoom, push_test, removeSlackBridgeChannelLinks, resetIrcConnection,
restart_server, rocketchatSearch.suggest, saveAudioNotificationValue,
sendSMTPTestEmail.

Companion to #40654 which covers orphan methods with a REST replacement.

Refs: ARCH-2159
@ggazzo ggazzo force-pushed the chore/ddp-deprecation-no-replacement branch from ff068a8 to 34fc11c Compare May 26, 2026 20:50
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.

1 participant