Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Feb 7, 2024
1 parent 28bdc44 commit 7636fdb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,17 +436,17 @@ export class TimeSeriesExplorer extends React.Component {
chartDataError: undefined,
...(fullRefresh
? {
chartDetails: undefined,
contextChartData: undefined,
contextForecastData: undefined,
focusChartData: undefined,
focusForecastData: undefined,
modelPlotEnabled:
isModelPlotChartableForDetector(currentSelectedJob, selectedDetectorIndex) &&
isModelPlotEnabled(currentSelectedJob, selectedDetectorIndex, entityControls),
hasResults: false,
dataNotChartable: false,
}
chartDetails: undefined,
contextChartData: undefined,
contextForecastData: undefined,
focusChartData: undefined,
focusForecastData: undefined,
modelPlotEnabled:
isModelPlotChartableForDetector(currentSelectedJob, selectedDetectorIndex) &&
isModelPlotEnabled(currentSelectedJob, selectedDetectorIndex, entityControls),
hasResults: false,
dataNotChartable: false,
}
: {}),
},
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function getDefaultChartsData(): ExplorerChartsData {
}

export function anomalyChartsDataProvider(mlClient: MlClient, client: IScopedClusterClient) {
let handleError: (errorMsg: string, jobId: string) => void = () => { };
let handleError: (errorMsg: string, jobId: string) => void = () => {};

async function fetchMetricData(
index: string,
Expand Down Expand Up @@ -341,9 +341,9 @@ export function anomalyChartsDataProvider(mlClient: MlClient, client: IScopedClu
aggType === undefined
? { max: 'max', min: 'min' }
: {
max: aggType.max,
min: aggType.min,
};
max: aggType.max,
min: aggType.min,
};

// Build the criteria to use in the bool filter part of the request.
// Add criteria for the job ID and time range.
Expand Down Expand Up @@ -1191,9 +1191,9 @@ export function anomalyChartsDataProvider(mlClient: MlClient, client: IScopedClu

data.errorMessages = errorMessages
? Object.entries(errorMessages!).reduce((acc, [errorMessage, jobs]) => {
acc[errorMessage] = Array.from(jobs);
return acc;
}, {} as Record<string, string[]>)
acc[errorMessage] = Array.from(jobs);
return acc;
}, {} as Record<string, string[]>)
: undefined;

return data;
Expand Down

0 comments on commit 7636fdb

Please sign in to comment.