Chore: Validate batch query refIds (#63018)

This commit is contained in:
Andres Martinez Gotor
2023-02-09 10:11:16 +01:00
committed by GitHub
parent 2a34293689
commit 00b692c0f9
4 changed files with 36 additions and 2 deletions

View File

@ -295,8 +295,7 @@ func (s *Service) parseMetricRequest(ctx context.Context, user *user.SignedInUse
})
}
_ = req.validateRequest(ctx)
return req, nil // TODO req.validateRequest()
return req, req.validateRequest(ctx)
}
func (s *Service) getDataSourceFromQuery(ctx context.Context, user *user.SignedInUser, skipCache bool, query *simplejson.Json, history map[string]*datasources.DataSource) (*datasources.DataSource, error) {