-
Notifications
You must be signed in to change notification settings - Fork 19
feat: add tenant code to role apis #786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes introduce tenant-aware handling in user role management by updating method signatures and logic in controllers and services to include Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Controller (userRole)
participant Service (userRoleHelper)
participant Database
Client->>Controller (userRole): Create/Update/Delete/List Role (with JWT)
Controller (userRole)->>Service (userRoleHelper): Call method with (data, organization_id, tenant_code, ...)
Service (userRoleHelper)->>Database: Query/Update with organization_id, tenant_code
Database-->>Service (userRoleHelper): Result/Error
Service (userRoleHelper)-->>Controller (userRole): Response (success/failure, localization)
Controller (userRole)-->>Client: API Response
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (3)src/database/queries/**⚙️ CodeRabbit Configuration File
Files:
src/controllers/**⚙️ CodeRabbit Configuration File
Files:
src/services/**⚙️ CodeRabbit Configuration File
Files:
🧠 Learnings (3)📓 Common learnings📚 Learning: in the elevate-project/user codebase, organizationcode and tenantcode parameters passed to service m...Applied to files:
📚 Learning: the migration for converting tenant_code to a primary key in the entitytype model was already handle...Applied to files:
🔇 Additional comments (12)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Refactor