From 8fde4df6cee257b44c73ed7f1645dcfae3adacd8 Mon Sep 17 00:00:00 2001 From: igoristic Date: Tue, 16 Apr 2019 03:14:41 -0700 Subject: [PATCH] Allow empty and null key types (#35016) --- .../monitoring/server/kibana_monitoring/bulk_uploader.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.js b/x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.js index 47566b0e5fc0..cf37f2933a80 100644 --- a/x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.js +++ b/x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.js @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { defaultsDeep, isEmpty, uniq, compact } from 'lodash'; +import { defaultsDeep, uniq, compact } from 'lodash'; import { callClusterFactory } from '../../../xpack_main'; import { LOGGING_TAG, @@ -169,9 +169,6 @@ export class BulkUploader { // convert the raw data to a nested object by taking each payload through // its formatter, organizing it per-type const typesNested = rawData.reduce((accum, { type, result }) => { - if (isEmpty(result)) { - return accum; - } const { type: uploadType, payload: uploadData } = collectorSet.getCollectorByType(type).formatForBulkUpload(result); return defaultsDeep(accum, { [uploadType]: uploadData }); }, {});