mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 04:49:02 +08:00
* fix : Hide limit param in list view of traces #3173 * Hide Limit blue text also removed * changes made such that LIMIT is only hidden for Traces List and not for Logs * code refactored and filterConfigs used * minor change * unnecessary filter code removed * lint issue fixed and develop branch merged * minor change * eslint fix --------- Co-authored-by: Palash Gupta <palashgdev@gmail.com> Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
This commit is contained in:
parent
fabdf87ed1
commit
4397c53494
@ -210,16 +210,19 @@ export const Query = memo(function Query({
|
||||
default: {
|
||||
return (
|
||||
<>
|
||||
<Col span={11}>
|
||||
<Row gutter={[11, 5]}>
|
||||
<Col flex="5.93rem">
|
||||
<FilterLabel label="Limit" />
|
||||
</Col>
|
||||
<Col flex="1 1 12.5rem">
|
||||
<LimitFilter query={query} onChange={handleChangeLimit} />
|
||||
</Col>
|
||||
</Row>
|
||||
</Col>
|
||||
{!filterConfigs?.limit?.isHidden && (
|
||||
<Col span={11}>
|
||||
<Row gutter={[11, 5]}>
|
||||
<Col flex="5.93rem">
|
||||
<FilterLabel label="Limit" />
|
||||
</Col>
|
||||
<Col flex="1 1 12.5rem">
|
||||
<LimitFilter query={query} onChange={handleChangeLimit} />
|
||||
</Col>
|
||||
</Row>
|
||||
</Col>
|
||||
)}
|
||||
|
||||
{!filterConfigs?.having?.isHidden && (
|
||||
<Col span={11}>
|
||||
<Row gutter={[11, 5]}>
|
||||
@ -232,7 +235,6 @@ export const Query = memo(function Query({
|
||||
</Row>
|
||||
</Col>
|
||||
)}
|
||||
|
||||
<Col span={11}>
|
||||
<Row gutter={[11, 5]}>
|
||||
<Col flex="5.93rem">
|
||||
@ -251,6 +253,7 @@ export const Query = memo(function Query({
|
||||
panelType,
|
||||
isMetricsDataSource,
|
||||
query,
|
||||
filterConfigs?.limit?.isHidden,
|
||||
filterConfigs?.having?.isHidden,
|
||||
handleChangeLimit,
|
||||
handleChangeHavingFilter,
|
||||
|
@ -20,6 +20,7 @@ function QuerySection(): JSX.Element {
|
||||
const isList = panelTypes === PANEL_TYPES.LIST;
|
||||
const config: QueryBuilderProps['filterConfigs'] = {
|
||||
stepInterval: { isHidden: false, isDisabled: true },
|
||||
limit: { isHidden: isList, isDisabled: true },
|
||||
having: { isHidden: isList, isDisabled: true },
|
||||
};
|
||||
|
||||
|
@ -152,7 +152,6 @@ export const useQueryOperations: UseQueryOperations = ({
|
||||
() => query.dataSource === DataSource.METRICS,
|
||||
[query.dataSource],
|
||||
);
|
||||
|
||||
const isTracePanelType = useMemo(() => panelType === PANEL_TYPES.TRACE, [
|
||||
panelType,
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user