mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 23:45:55 +08:00
fix: autcomplete top level keys (#3104)
This commit is contained in:
parent
1d1ddbef40
commit
a6e6c171c3
@ -3958,7 +3958,10 @@ func (r *ClickHouseReader) GetLogAttributeValues(ctx context.Context, req *v3.Fi
|
|||||||
|
|
||||||
// if dataType or tagType is not present return empty response
|
// 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 || req.FilterAttributeKey == "body" {
|
||||||
return &v3.FilterAttributeValueResponse{}, nil
|
// also check if it is not a top level key
|
||||||
|
if _, ok := constants.StaticFieldsLogsV3[req.FilterAttributeKey]; !ok {
|
||||||
|
return &v3.FilterAttributeValueResponse{}, nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if data type is bool, return true and false
|
// if data type is bool, return true and false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user