fix: inconsistent method metadata in removeUserFromRole error#39211
fix: inconsistent method metadata in removeUserFromRole error#39211sahillllllllll-bit wants to merge 1 commit intoRocketChat:developfrom
removeUserFromRole error#39211Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (6)📓 Common learnings📚 Learning: 2026-01-17T01:51:47.764ZApplied to files:
📚 Learning: 2025-09-30T13:00:05.465ZApplied to files:
📚 Learning: 2025-11-04T16:49:19.107ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
🔇 Additional comments (1)
WalkthroughThis change updates error metadata in the removeUserFromRole method by changing the Meteor.Error method identifier from "removeUserFromRole" to "authorization:removeUserFromRole" to follow a consistent naming convention. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ 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. Comment |
Summary
Ensures consistent
methodmetadata inremoveUserFromRoleerrors.The "last admin removal" error used
method: 'removeUserFromRole'while other errors in the same function use
method: 'authorization:removeUserFromRole'.This change aligns the metadata for consistency in logging and observability.
Summary by CodeRabbit