mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
fix: added filtering based on both name and serviceName pairs
This commit is contained in:
parent
6f4a965c6d
commit
00ae45022b
@ -385,9 +385,6 @@ func (r *ClickHouseReader) buildResourceSubQuery(tags []model.TagQueryParam, svc
|
||||
}
|
||||
|
||||
func (r *ClickHouseReader) GetServices(ctx context.Context, queryParams *model.GetServicesParams) (*[]model.ServiceItem, *model.ApiError) {
|
||||
|
||||
fmt.Printf("Inside GetServices\n")
|
||||
|
||||
if r.indexTable == "" {
|
||||
return nil, &model.ApiError{Typ: model.ErrorExec, Err: ErrNoIndexTable}
|
||||
}
|
||||
@ -396,8 +393,6 @@ func (r *ClickHouseReader) GetServices(ctx context.Context, queryParams *model.G
|
||||
if apiErr != nil {
|
||||
return nil, apiErr
|
||||
}
|
||||
|
||||
fmt.Printf("TopLevelOps: %v\n", topLevelOps)
|
||||
// Collect (name, serviceName) pairs to maintain service context
|
||||
var serviceOperationPairs [][]interface{}
|
||||
serviceOperationsMap := make(map[string][]string)
|
||||
@ -493,8 +488,6 @@ func (r *ClickHouseReader) GetServices(ctx context.Context, queryParams *model.G
|
||||
return nil, &model.ApiError{Typ: model.ErrorExec, Err: err}
|
||||
}
|
||||
|
||||
fmt.Printf("ServiceItems: %v\n", serviceItems)
|
||||
|
||||
return &serviceItems, nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user