[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.
This commit is contained in:
Nathan Reese 2024-10-31 10:37:51 -06:00 committed by GitHub
parent 7701087f44
commit 0cd2d924de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,7 @@
"dataViews",
"dataViewEditor",
"embeddable",
"fieldFormats",
"controls",
"inspector",
"navigation",