mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 04:15:57 +08:00
fix: autcomplete top level keys (#3104)
This commit is contained in:
parent
1d1ddbef40
commit
a6e6c171c3
@ -3958,8 +3958,11 @@ func (r *ClickHouseReader) GetLogAttributeValues(ctx context.Context, req *v3.Fi
|
||||
|
||||
// if dataType or tagType is not present return empty response
|
||||
if len(req.FilterAttributeKeyDataType) == 0 || len(req.TagType) == 0 || req.FilterAttributeKey == "body" {
|
||||
// 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 req.FilterAttributeKeyDataType == v3.AttributeKeyDataTypeBool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user