Skip to content

refactor(meteor): remove Accounts/Zustand bridge override#40361

Open
priyamkarn wants to merge 2 commits intoRocketChat:developfrom
priyamkarn:develop
Open

refactor(meteor): remove Accounts/Zustand bridge override#40361
priyamkarn wants to merge 2 commits intoRocketChat:developfrom
priyamkarn:develop

Conversation

@priyamkarn
Copy link
Copy Markdown

@priyamkarn priyamkarn commented May 1, 2026

Title:
Remove Meteor Accounts/Zustand bridge override

Description:
Removes the userAndUsers override that bridged Meteor's
Accounts.connection userId reactive source to the Zustand
userIdStore. This was marked as a TODO to remove together
with the Meteor webapp/DDP/Accounts layer.

Deleted files:

  • apps/meteor/client/meteor/overrides/userAndUsers.ts
  • Updated apps/meteor/client/meteor/overrides/index.ts

Summary by CodeRabbit

  • Refactor
    • Removed the client-side user state synchronization override that previously bridged external account reactivity into the app's local state management.
  • Chores
    • Added a changeset marking a major release reflecting the removal.

@priyamkarn priyamkarn requested a review from a team as a code owner May 1, 2026 13:44
@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot Bot commented May 1, 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 1, 2026

🦋 Changeset detected

Latest commit: 13182ec

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

This PR includes changesets to release 73 packages
Name Type
@rocket.chat/meteor Major
rocketchat-services Major
@rocket.chat/uikit-playground Major
@rocket.chat/account-service Major
@rocket.chat/authorization-service Major
@rocket.chat/ddp-streamer Major
@rocket.chat/omnichannel-transcript Major
@rocket.chat/presence-service Major
@rocket.chat/queue-worker Major
@rocket.chat/abac Major
@rocket.chat/federation-matrix Major
@rocket.chat/license Major
@rocket.chat/media-calls Major
@rocket.chat/network-broker Major
@rocket.chat/omni-core-ee Major
@rocket.chat/omnichannel-services Major
@rocket.chat/pdf-worker Major
@rocket.chat/presence Major
@rocket.chat/account-utils Major
@rocket.chat/agenda Major
@rocket.chat/api-client Major
@rocket.chat/apps Major
@rocket.chat/apps-engine Major
@rocket.chat/base64 Major
@rocket.chat/cas-validate Major
@rocket.chat/core-services Major
@rocket.chat/core-typings Major
@rocket.chat/cron Major
@rocket.chat/ddp-client Major
@rocket.chat/desktop-api Major
@rocket.chat/eslint-config Major
@rocket.chat/favicon Major
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/gazzodown Major
@rocket.chat/http-router Major
@rocket.chat/i18n Major
@rocket.chat/instance-status Major
@rocket.chat/jest-presets Major
@rocket.chat/jwt Major
@rocket.chat/livechat Major
@rocket.chat/log-format Major
@rocket.chat/logger Major
@rocket.chat/media-signaling Major
@rocket.chat/message-parser Major
@rocket.chat/message-types Major
@rocket.chat/mock-providers Major
@rocket.chat/model-typings Major
@rocket.chat/models Major
@rocket.chat/mongo-adapter Major
@rocket.chat/poplib Major
@rocket.chat/omni-core Major
@rocket.chat/password-policies Major
@rocket.chat/patch-injection Major
@rocket.chat/peggy-loader Major
@rocket.chat/random Major
@rocket.chat/release-action Major
@rocket.chat/release-changelog Major
@rocket.chat/rest-typings Major
@rocket.chat/server-cloud-communication Major
@rocket.chat/server-fetch Major
@rocket.chat/sha256 Major
@rocket.chat/storybook-config Major
@rocket.chat/tools Major
@rocket.chat/tracing Major
@rocket.chat/tsconfig Major
@rocket.chat/ui-avatar Major
@rocket.chat/ui-client Major
@rocket.chat/ui-composer Major
@rocket.chat/ui-contexts Major
@rocket.chat/ui-kit Major
@rocket.chat/ui-video-conf Major
@rocket.chat/ui-voip Major
@rocket.chat/web-ui-registration 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

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 1, 2026

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 1, 2026

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: b5cfdc95-8a94-4561-aaa1-ee204dab44fb

📥 Commits

Reviewing files that changed from the base of the PR and between 98bebd8 and 13182ec.

📒 Files selected for processing (1)
  • .changeset/busy-parks-worry.md
✅ Files skipped from review due to trivial changes (1)
  • .changeset/busy-parks-worry.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). (1)
  • GitHub Check: cubic · AI code reviewer

Walkthrough

Removed a client-side Meteor override that bridged Meteor Accounts/DDP user reactivity into a local Zustand user store; the override file was deleted and its side-effect import removed from the overrides index. A changeset marking a major release was added.

Changes

Cohort / File(s) Summary
Meteor User Overrides Removal
apps/meteor/client/meteor/overrides/index.ts, apps/meteor/client/meteor/overrides/userAndUsers.ts
Removed the userAndUsers side-effect module and its import from the overrides index; deletes Tracker.autorun, MinimongoCollection invalidation hooks, and the local overrides for Meteor.userId, Meteor.user, and Meteor.users.
Release Metadata
.changeset/busy-parks-worry.md
Added a changeset declaring a major release and documenting the removal of the Meteor Accounts ↔ Zustand bridge override.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels

area: authentication

🚥 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 title 'refactor(meteor): remove Accounts/Zustand bridge override' directly and accurately summarizes the main change: removal of the Meteor Accounts/Zustand bridge override from the codebase.
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.


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
Review rate limit: 6/8 reviews remaining, refill in 7 minutes and 39 seconds.

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

Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

No issues found across 3 files

@priyamkarn priyamkarn changed the title Remove Meteor Accounts/Zustand bridge override refactor(meteor): remove Accounts/Zustand bridge override May 1, 2026
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