Skip to content

chore!: remove Push_UseLegacy, Push_gcm_project_number and Push_gcm_api_key settings - #41899

Open
KevLehman wants to merge 2 commits into
release-9.0.0from
chore/remove-push-legacy-settings
Open

chore!: remove Push_UseLegacy, Push_gcm_project_number and Push_gcm_api_key settings#41899
KevLehman wants to merge 2 commits into
release-9.0.0from
chore/remove-push-legacy-settings

Conversation

@KevLehman

@KevLehman KevLehman commented Aug 21, 2026

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

Removes the hidden Push_UseLegacy, Push_gcm_project_number and Push_gcm_api_key settings, marked with a TODO for removal at 8.0.0. The legacy GCM provider they configured was shut down by Google on June 20, 2024, so they no longer had any effect — the send path already uses the FCM v1 API with OAuth credentials from Push_google_api_credentials, and no code branches on Push_UseLegacy.

Issue(s)

https://rocketchat.atlassian.net/browse/CORE-2590

Steps to test or reproduce

Start the server against a database that has any of the three settings stored; after migration 340 runs, the documents are gone from rocketchat_settings. Android push notifications keep working through the gateway or the FCM credentials in Push_google_api_credentials.

Further comments

Review in cubic

Summary by CodeRabbit

  • Removed Features

    • Removed legacy push notification settings and obsolete GCM configuration fields.
    • Android notifications continue through the push gateway or Google push credentials.
    • Existing installations will have deprecated push settings deleted automatically during upgrade.
  • Localization

    • Removed translations for legacy push-provider and GCM configuration settings across supported languages.
    • Current push credentials and restart-required messaging remain available.

@dionisio-bot

dionisio-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

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

@changeset-bot

changeset-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: dbde615

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

This PR includes changesets to release 9 packages
Name Type
@rocket.chat/meteor Major
@rocket.chat/i18n Major
@rocket.chat/mock-providers Patch
@rocket.chat/ui-contexts Major
@rocket.chat/web-ui-registration Major
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/omnichannel-services Patch
@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 Aug 21, 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 Plus

Run ID: 2382099f-0513-468a-bfa8-983784782ba0

📥 Commits

Reviewing files that changed from the base of the PR and between ca59ab9 and dbde615.

📒 Files selected for processing (62)
  • .changeset/remove-legacy-push-settings.md
  • apps/meteor/server/settings/push.ts
  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/server/startup/migrations/v340.ts
  • packages/i18n/src/locales/af.i18n.json
  • packages/i18n/src/locales/ar.i18n.json
  • packages/i18n/src/locales/az.i18n.json
  • packages/i18n/src/locales/be-BY.i18n.json
  • packages/i18n/src/locales/bg.i18n.json
  • packages/i18n/src/locales/bs.i18n.json
  • packages/i18n/src/locales/ca.i18n.json
  • packages/i18n/src/locales/cs.i18n.json
  • packages/i18n/src/locales/cy.i18n.json
  • packages/i18n/src/locales/da.i18n.json
  • packages/i18n/src/locales/de-AT.i18n.json
  • packages/i18n/src/locales/de-IN.i18n.json
  • packages/i18n/src/locales/de.i18n.json
  • packages/i18n/src/locales/el.i18n.json
  • packages/i18n/src/locales/en.i18n.json
  • packages/i18n/src/locales/eo.i18n.json
  • packages/i18n/src/locales/es.i18n.json
  • packages/i18n/src/locales/fa.i18n.json
  • packages/i18n/src/locales/fi.i18n.json
  • packages/i18n/src/locales/fr.i18n.json
  • packages/i18n/src/locales/he.i18n.json
  • packages/i18n/src/locales/hi-IN.i18n.json
  • packages/i18n/src/locales/hr.i18n.json
  • packages/i18n/src/locales/hu.i18n.json
  • packages/i18n/src/locales/id.i18n.json
  • packages/i18n/src/locales/it.i18n.json
  • packages/i18n/src/locales/ja.i18n.json
  • packages/i18n/src/locales/ka-GE.i18n.json
  • packages/i18n/src/locales/km.i18n.json
  • packages/i18n/src/locales/ko.i18n.json
  • packages/i18n/src/locales/ku.i18n.json
  • packages/i18n/src/locales/lo.i18n.json
  • packages/i18n/src/locales/lt.i18n.json
  • packages/i18n/src/locales/lv.i18n.json
  • packages/i18n/src/locales/mn.i18n.json
  • packages/i18n/src/locales/ms-MY.i18n.json
  • packages/i18n/src/locales/nb.i18n.json
  • packages/i18n/src/locales/nl.i18n.json
  • packages/i18n/src/locales/nn.i18n.json
  • packages/i18n/src/locales/pl.i18n.json
  • packages/i18n/src/locales/pt-BR.i18n.json
  • packages/i18n/src/locales/pt.i18n.json
  • packages/i18n/src/locales/ro.i18n.json
  • packages/i18n/src/locales/ru.i18n.json
  • packages/i18n/src/locales/sk-SK.i18n.json
  • packages/i18n/src/locales/sl-SI.i18n.json
  • packages/i18n/src/locales/sq.i18n.json
  • packages/i18n/src/locales/sr.i18n.json
  • packages/i18n/src/locales/sv.i18n.json
  • packages/i18n/src/locales/ta-IN.i18n.json
  • packages/i18n/src/locales/th-TH.i18n.json
  • packages/i18n/src/locales/tr.i18n.json
  • packages/i18n/src/locales/ug.i18n.json
  • packages/i18n/src/locales/uk.i18n.json
  • packages/i18n/src/locales/vi-VN.i18n.json
  • packages/i18n/src/locales/zh-HK.i18n.json
  • packages/i18n/src/locales/zh-TW.i18n.json
  • packages/i18n/src/locales/zh.i18n.json
💤 Files with no reviewable changes (58)
  • packages/i18n/src/locales/de-IN.i18n.json
  • packages/i18n/src/locales/mn.i18n.json
  • packages/i18n/src/locales/sl-SI.i18n.json
  • packages/i18n/src/locales/es.i18n.json
  • packages/i18n/src/locales/tr.i18n.json
  • packages/i18n/src/locales/ka-GE.i18n.json
  • packages/i18n/src/locales/it.i18n.json
  • packages/i18n/src/locales/cy.i18n.json
  • packages/i18n/src/locales/ro.i18n.json
  • packages/i18n/src/locales/pt-BR.i18n.json
  • packages/i18n/src/locales/be-BY.i18n.json
  • packages/i18n/src/locales/he.i18n.json
  • packages/i18n/src/locales/az.i18n.json
  • packages/i18n/src/locales/bs.i18n.json
  • packages/i18n/src/locales/fa.i18n.json
  • packages/i18n/src/locales/sq.i18n.json
  • packages/i18n/src/locales/ms-MY.i18n.json
  • packages/i18n/src/locales/af.i18n.json
  • packages/i18n/src/locales/ku.i18n.json
  • packages/i18n/src/locales/lv.i18n.json
  • packages/i18n/src/locales/fi.i18n.json
  • packages/i18n/src/locales/zh-HK.i18n.json
  • packages/i18n/src/locales/cs.i18n.json
  • packages/i18n/src/locales/lo.i18n.json
  • packages/i18n/src/locales/vi-VN.i18n.json
  • packages/i18n/src/locales/sk-SK.i18n.json
  • packages/i18n/src/locales/th-TH.i18n.json
  • packages/i18n/src/locales/sr.i18n.json
  • packages/i18n/src/locales/ta-IN.i18n.json
  • packages/i18n/src/locales/bg.i18n.json
  • packages/i18n/src/locales/id.i18n.json
  • packages/i18n/src/locales/nl.i18n.json
  • packages/i18n/src/locales/ar.i18n.json
  • packages/i18n/src/locales/de.i18n.json
  • packages/i18n/src/locales/nb.i18n.json
  • packages/i18n/src/locales/hr.i18n.json
  • packages/i18n/src/locales/fr.i18n.json
  • packages/i18n/src/locales/lt.i18n.json
  • packages/i18n/src/locales/de-AT.i18n.json
  • packages/i18n/src/locales/km.i18n.json
  • packages/i18n/src/locales/pl.i18n.json
  • packages/i18n/src/locales/da.i18n.json
  • packages/i18n/src/locales/pt.i18n.json
  • packages/i18n/src/locales/nn.i18n.json
  • packages/i18n/src/locales/hi-IN.i18n.json
  • packages/i18n/src/locales/ko.i18n.json
  • packages/i18n/src/locales/ja.i18n.json
  • packages/i18n/src/locales/hu.i18n.json
  • packages/i18n/src/locales/uk.i18n.json
  • packages/i18n/src/locales/zh-TW.i18n.json
  • packages/i18n/src/locales/ug.i18n.json
  • packages/i18n/src/locales/el.i18n.json
  • packages/i18n/src/locales/ca.i18n.json
  • packages/i18n/src/locales/en.i18n.json
  • packages/i18n/src/locales/eo.i18n.json
  • packages/i18n/src/locales/ru.i18n.json
  • packages/i18n/src/locales/zh.i18n.json
  • packages/i18n/src/locales/sv.i18n.json

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (4)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Hacktron Security Check
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (3/5)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (1/4)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{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/server/startup/migrations/index.ts
  • apps/meteor/server/startup/migrations/v340.ts
  • apps/meteor/server/settings/push.ts
apps/meteor/**

📄 CodeRabbit inference engine (CLAUDE.md)

The main Rocket.Chat Meteor application resides in apps/meteor/; place its application code there rather than in other monorepo areas.

Files:

  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/server/startup/migrations/v340.ts
  • apps/meteor/server/settings/push.ts
🔇 Additional comments (5)
apps/meteor/server/settings/push.ts (2)

22-22: LGTM!


109-111: LGTM!

apps/meteor/server/startup/migrations/index.ts (1)

48-48: LGTM!

.changeset/remove-legacy-push-settings.md (1)

1-6: LGTM!

apps/meteor/server/startup/migrations/v340.ts (1)

5-10: 🗄️ Data Integrity & Integration

No remaining runtime readers reference the deleted setting IDs.


Walkthrough

The change removes legacy push settings and their translations. Startup migration v340 deletes existing legacy settings. Google push credentials remain available through the current configuration path.

Changes

Legacy push configuration

Layer / File(s) Summary
Update push configuration
apps/meteor/server/settings/push.ts
Removes Push_UseLegacy, its warning, and the legacy GCM credential settings. Registers Push_google_api_credentials unconditionally.
Migrate stored settings
apps/meteor/server/startup/migrations/*, .changeset/remove-legacy-push-settings.md
Registers migration v340 and deletes the three obsolete settings from Settings. Documents the major release and upgrade behavior.
Remove obsolete translations
packages/i18n/src/locales/*
Removes legacy push-provider and GCM credential translations across supported locales. Retains current push configuration translations.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to dbde6

This PR removes obsolete push settings and migrates stored values without changing the active push path; no actionable merge-blocking risk remains beyond normal checks.

Suggested labels: type: chore

Suggested reviewers: sampaiodiego, ggazzo

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files. (1 skipped: 1 unsupported.)
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the removal of the three obsolete push settings, which is the main change in the pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

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.

…-push-legacy-settings

# Conflicts:
#	apps/meteor/server/startup/migrations/index.ts
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release-9.0.0@ca59ab9). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##             release-9.0.0   #41899   +/-   ##
================================================
  Coverage                 ?   68.84%           
================================================
  Files                    ?     4135           
  Lines                    ?   158123           
  Branches                 ?    28074           
================================================
  Hits                     ?   108860           
  Misses                   ?    44122           
  Partials                 ?     5141           
Flag Coverage Δ
e2e 59.21% <ø> (?)
e2e-api 46.02% <66.66%> (?)
unit 70.55% <ø> (?)

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.

@KevLehman
KevLehman marked this pull request as ready for review August 21, 2026 18:53
@KevLehman
KevLehman requested review from a team as code owners August 21, 2026 18:53
@KevLehman KevLehman added this to the 9.0.0 milestone Aug 21, 2026
@KevLehman KevLehman added the stat: QA assured Means it has been tested and approved by a company insider label Aug 21, 2026
@dionisio-bot dionisio-bot Bot added the stat: ready to merge PR tested and approved waiting for merge label Aug 21, 2026

@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.

No issues found across 62 files

Re-trigger cubic

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 type: chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants