From c4e482cd84cccc08b69084ee30d1df7947692029 Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Thu, 31 Oct 2024 10:37:51 -0600 Subject: [PATCH] [Dashboard] fix Export CSV doesnt work (#198547) Closes https://github.com/elastic/kibana/issues/198517 https://github.com/elastic/kibana/pull/193644 refactored Dashboard services. Part of this refactor moved `fieldFormats` from `data.fieldFormats` to getting `fieldFormats` directly from the fieldFormats plugin. That is because `data.fieldFormats` is marked as deprecated. The problem is that the fieldFormats plugin was not defined under `requiredPlugins` and thus was undefined at runtime. ### Test instructions 1) install web logs sample data 2) open web logs sample data dashboard 3) hover over "[Logs] Response Codes Over Time + Annotations" panel and select "three dots" icon. Then select "Download CSV". Verify there are no errors in web browser console and CSV is downloaded. (cherry picked from commit 0cd2d924dea85ec02d65bcf967b28dac96714ed3) --- src/plugins/dashboard/kibana.jsonc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/dashboard/kibana.jsonc b/src/plugins/dashboard/kibana.jsonc index d7b0f2c16e04b..9be62b08597be 100644 --- a/src/plugins/dashboard/kibana.jsonc +++ b/src/plugins/dashboard/kibana.jsonc @@ -12,6 +12,7 @@ "dataViews", "dataViewEditor", "embeddable", + "fieldFormats", "controls", "inspector", "navigation",