-
Notifications
You must be signed in to change notification settings - Fork 0
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
added tenant id header #188
added tenant id header #188
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe changes involve modifications to the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant BackendSrv
participant SessionStorage
Client->>BackendSrv: Make request
BackendSrv->>SessionStorage: Check for firebaseTenantId
alt firebaseTenantId exists
BackendSrv->>SessionStorage: Check for codeRabbitOrg
alt codeRabbitOrg exists
BackendSrv->>Client: Add x-tenant-id header
else
BackendSrv->>Client: Proceed without x-tenant-id
end
else
BackendSrv->>Client: Proceed without x-tenant-id
end
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
71c9177
into
coderabbit_micro_frontend
The changes involve modifications to the BackendSrv class located in the public/app/core/services/backend_srv.ts file. The request handling logic is enhanced by adding a new header, x-tenant-id, based on the presence of a firebaseTenantId in session storage. This addition is conditional on the existence of a codeRabbitOrg also retrieved from session storage. Furthermore, the getCodeRabbitOrg method has been updated to improve error handling during JSON parsing.