From 2e279aa2bdb194897b7187c91de20b36d95708f6 Mon Sep 17 00:00:00 2001 From: Joel Griffith Date: Tue, 27 Aug 2019 09:36:12 -0700 Subject: [PATCH] Feature/default enable csv dashboard (#44048) * Enable panel-action downloads by default * Updating snapshots --- .../plugins/reporting/__snapshots__/index.test.js.snap | 8 ++++---- x-pack/legacy/plugins/reporting/index.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/legacy/plugins/reporting/__snapshots__/index.test.js.snap b/x-pack/legacy/plugins/reporting/__snapshots__/index.test.js.snap index 3397f0ae39b08..120114673b267 100644 --- a/x-pack/legacy/plugins/reporting/__snapshots__/index.test.js.snap +++ b/x-pack/legacy/plugins/reporting/__snapshots__/index.test.js.snap @@ -26,7 +26,7 @@ Object { }, "csv": Object { "checkForFormulas": true, - "enablePanelActionDownload": false, + "enablePanelActionDownload": true, "maxSizeBytes": 10485760, "scroll": Object { "duration": "30s", @@ -88,7 +88,7 @@ Object { }, "csv": Object { "checkForFormulas": true, - "enablePanelActionDownload": false, + "enablePanelActionDownload": true, "maxSizeBytes": 10485760, "scroll": Object { "duration": "30s", @@ -149,7 +149,7 @@ Object { }, "csv": Object { "checkForFormulas": true, - "enablePanelActionDownload": false, + "enablePanelActionDownload": true, "maxSizeBytes": 10485760, "scroll": Object { "duration": "30s", @@ -211,7 +211,7 @@ Object { }, "csv": Object { "checkForFormulas": true, - "enablePanelActionDownload": false, + "enablePanelActionDownload": true, "maxSizeBytes": 10485760, "scroll": Object { "duration": "30s", diff --git a/x-pack/legacy/plugins/reporting/index.js b/x-pack/legacy/plugins/reporting/index.js index 44cc7d229d1c5..6acf77f1dc726 100644 --- a/x-pack/legacy/plugins/reporting/index.js +++ b/x-pack/legacy/plugins/reporting/index.js @@ -134,7 +134,7 @@ export const reporting = (kibana) => { }).default(), csv: Joi.object({ checkForFormulas: Joi.boolean().default(true), - enablePanelActionDownload: Joi.boolean().default(false), + enablePanelActionDownload: Joi.boolean().default(true), maxSizeBytes: Joi.number().integer().default(1024 * 1024 * 10), // bytes in a kB * kB in a mB * 10 scroll: Joi.object({ duration: Joi.string().regex(/^[0-9]+(d|h|m|s|ms|micros|nanos)$/, { name: 'DurationString' }).default('30s'),