File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const (
36
36
HeaderPanelPluginId = "X-Panel-Plugin-Id"
37
37
HeaderQueryGroupID = "X-Query-Group-Id" // mainly useful for finding related queries with query chunking
38
38
HeaderFromExpression = "X-Grafana-From-Expr" // used by datasources to identify expression queries
39
- headerCodeRabbitOrg = "X-CodeRabbit-Org-Id" // used by CodeRabbit Org Id use to set Row Level Security to scope queries to org
39
+ headerCodeRabbitOrg = "X-CodeRabbit-Org-Id" // used by CodeRabbit Org Id use to set Row Level Security to scope queries to org
40
40
)
41
41
42
42
func ProvideService (
@@ -264,11 +264,11 @@ func (s *ServiceImpl) handleQuerySingleDatasource(ctx context.Context, user iden
264
264
codeRabbitOrgId := ""
265
265
reqCtx := contexthandler .FromContext (ctx )
266
266
if reqCtx != nil && reqCtx .Req != nil {
267
- s .log .Info ("CodeRabbitOrgID found in header" )
268
267
codeRabbitOrgId = reqCtx .Req .Header .Get (headerCodeRabbitOrg )
269
268
}
270
269
271
270
if codeRabbitOrgId != "" {
271
+ s .log .Info ("CodeRabbitOrgID found in header" )
272
272
setQuery := s .createScopeToOrgQuery (codeRabbitOrgId , ds , true )
273
273
resetQuery := s .createScopeToOrgQuery (codeRabbitOrgId , ds , false )
274
274
You can’t perform that action at this time.
0 commit comments