Skip to content

Commit

Permalink
Merge branch 'main' into fix-custom-threshold-rule-serverless-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fkanout authored Sep 29, 2023
2 parents 1405a53 + 8c17d8a commit d0dc63b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Chart = ({
assetName,
...props
}: ChartProps) => {
const { setDateRange } = useDateRangeProviderContext();
const { setDateRange, refreshTs } = useDateRangeProviderContext();

const dataView = useMemo(() => {
return dataViewOrigin === 'metrics' ? metricsDataView : logsDataView;
Expand Down Expand Up @@ -93,6 +93,7 @@ export const Chart = ({
filters={filters}
title={title}
overrides={overrides}
lastReloadRequestTime={refreshTs}
visualizationType="lnsXY"
onBrushEnd={handleBrushEnd}
onFilter={handleFilter}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import React, { useMemo } from 'react';
import type { DataView } from '@kbn/data-views-plugin/public';
import { EuiFlexItem, EuiFlexGrid } from '@elastic/eui';
import type { TimeRange } from '@kbn/es-query';
import type { XYConfig } from '../../../../../common/visualizations';
import {
type XYConfig,
XY_MISSING_VALUE_DOTTED_LINE_CONFIG,
} from '../../../../../common/visualizations';
import { useMetadataStateProviderContext } from '../../../hooks/use_metadata_state';
import { Chart } from './chart';

Expand Down Expand Up @@ -55,6 +58,7 @@ export const MetricsGrid = ({
logsDataView={logsDataView}
metricsDataView={metricsDataView}
data-test-subj={props['data-test-subj']}
visualOptions={XY_MISSING_VALUE_DOTTED_LINE_CONFIG}
/>
</EuiFlexItem>
))}
Expand Down

0 comments on commit d0dc63b

Please sign in to comment.