mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 21:09:03 +08:00
fix: incorrect query being generated from traces page (#6130)
This commit is contained in:
parent
a24fb5d84f
commit
4b79d3b785
@ -244,7 +244,7 @@ function QueryBuilderSearchV2(
|
|||||||
isFetching: isFetchingSuggestions,
|
isFetching: isFetchingSuggestions,
|
||||||
} = useGetAttributeSuggestions(
|
} = useGetAttributeSuggestions(
|
||||||
{
|
{
|
||||||
searchText: searchValue.split(' ')[0],
|
searchText: searchValue?.split(' ')[0],
|
||||||
dataSource: query.dataSource,
|
dataSource: query.dataSource,
|
||||||
filters: query.filters,
|
filters: query.filters,
|
||||||
},
|
},
|
||||||
@ -691,7 +691,7 @@ function QueryBuilderSearchV2(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (currentState === DropdownState.OPERATOR) {
|
if (currentState === DropdownState.OPERATOR) {
|
||||||
const keyOperator = searchValue.split(' ');
|
const keyOperator = searchValue?.split(' ');
|
||||||
const partialOperator = keyOperator?.[1];
|
const partialOperator = keyOperator?.[1];
|
||||||
const strippedKey = keyOperator?.[0];
|
const strippedKey = keyOperator?.[0];
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { initialAutocompleteData, OPERATORS } from 'constants/queryBuilder';
|
import { initialAutocompleteData, OPERATORS } from 'constants/queryBuilder';
|
||||||
|
import { getOperatorValue } from 'container/QueryBuilder/filters/QueryBuilderSearch/utils';
|
||||||
import getStep from 'lib/getStep';
|
import getStep from 'lib/getStep';
|
||||||
import {
|
import {
|
||||||
BaseAutocompleteData,
|
BaseAutocompleteData,
|
||||||
@ -27,7 +28,8 @@ export const getTraceToLogsQuery = (
|
|||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: uuid(),
|
id: uuid(),
|
||||||
op: OPERATORS.IN,
|
// for generating query we use in instead of IN
|
||||||
|
op: getOperatorValue(OPERATORS.IN),
|
||||||
value: traceId,
|
value: traceId,
|
||||||
key,
|
key,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user