mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 15:15:57 +08:00
fix: ignore autocomplete request for body (#3208)
This commit is contained in:
parent
7b85ece796
commit
e86e045a28
@ -4030,13 +4030,18 @@ func (r *ClickHouseReader) GetLogAttributeValues(ctx context.Context, req *v3.Fi
|
||||
var attributeValues v3.FilterAttributeValueResponse
|
||||
|
||||
// if dataType or tagType is not present return empty response
|
||||
if len(req.FilterAttributeKeyDataType) == 0 || len(req.TagType) == 0 || req.FilterAttributeKey == "body" {
|
||||
if len(req.FilterAttributeKeyDataType) == 0 || len(req.TagType) == 0 {
|
||||
// also check if it is not a top level key
|
||||
if _, ok := constants.StaticFieldsLogsV3[req.FilterAttributeKey]; !ok {
|
||||
return &v3.FilterAttributeValueResponse{}, nil
|
||||
}
|
||||
}
|
||||
|
||||
// ignore autocomplete request for body
|
||||
if req.FilterAttributeKey == "body" {
|
||||
return &v3.FilterAttributeValueResponse{}, nil
|
||||
}
|
||||
|
||||
// if data type is bool, return true and false
|
||||
if req.FilterAttributeKeyDataType == v3.AttributeKeyDataTypeBool {
|
||||
return &v3.FilterAttributeValueResponse{
|
||||
|
Loading…
x
Reference in New Issue
Block a user