From ae9fcb6ce81bc24641a3ff81253ae41ab60df287 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 3397f0ae39b08c..120114673b2679 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 aa7d0d8c8faf2a..f87cc7c6cbc69b 100644 --- a/x-pack/legacy/plugins/reporting/index.js +++ b/x-pack/legacy/plugins/reporting/index.js @@ -129,7 +129,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'),