Skip to content

Commit

Permalink
review III
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Apr 2, 2022
1 parent f71b13c commit ab671cf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ describe('formatExecutionLogResult', () => {
expect(formatExecutionLogResult({ aggregations: undefined })).toEqual({
total: 0,
data: [],
errors: [],
totalErrors: 0,
});
});
test('should return empty results if aggregations.excludeExecuteStart are undefined', () => {
Expand All @@ -260,8 +258,6 @@ describe('formatExecutionLogResult', () => {
).toEqual({
total: 0,
data: [],
errors: [],
totalErrors: 0,
});
});
test('should format results correctly', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ const Millis2Nanos = 1000 * 1000;

export const EMPTY_EXECUTION_LOG_RESULT = {
total: 0,
totalErrors: 0,
data: [],
errors: [],
};

interface IAlertCounts extends estypes.AggregationsMultiBucketAggregateBase {
Expand Down Expand Up @@ -299,7 +297,7 @@ function formatExecutionLogAggBucket(bucket: IExecutionUuidAggBucket): IExecutio

export function formatExecutionLogResult(
results: AggregateEventsBySavedObjectResult
): Pick<IExecutionLogResult, 'total' | 'data'> {
): IExecutionLogResult {
const { aggregations } = results;

if (!aggregations || !aggregations.excludeExecuteStart) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
EuiSpacer,
EuiFlexGroup,
EuiFlexItem,
EuiHorizontalRule,
EuiPanel,
EuiStat,
EuiIconTip,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export const RuleErrorLog = (props: RuleErrorLogProps) => {
data-test-subj="RuleErrorLog"
loading={isLoading}
items={logList ?? []}
itemId="id"
columns={columns}
sorting={{ sort }}
pagination={pagination}
Expand Down

0 comments on commit ab671cf

Please sign in to comment.