Skip to content

Commit

Permalink
[Logs UI] Update alert executor tests (#75764) (#76863)
Browse files Browse the repository at this point in the history
* Update executor unit tests
  • Loading branch information
Kerry350 authored Sep 7, 2020
1 parent df39556 commit 2fefd13
Show file tree
Hide file tree
Showing 3 changed files with 626 additions and 512 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export async function getChartPreviewData(
const { rangeFilter } = buildFiltersFromCriteria(expandedAlertParams, timestampField);

const query = isGrouped
? getGroupedESQuery(expandedAlertParams, sourceConfiguration.configuration, indexPattern)
: getUngroupedESQuery(expandedAlertParams, sourceConfiguration.configuration, indexPattern);
? getGroupedESQuery(expandedAlertParams, timestampField, indexPattern)
: getUngroupedESQuery(expandedAlertParams, timestampField, indexPattern);

if (!query) {
throw new Error('ES query could not be built from the provided alert params');
Expand Down
Loading

0 comments on commit 2fefd13

Please sign in to comment.