kibana/x-pack/test/functional/apps
Julia Rechkunova 43fde917fb
[8.18] [Discover] Fix CSV for ES|QL embeddable (#216325) (#216868)
# Backport

This will backport the following commits from `main` to `8.18`:
- [[Discover] Fix CSV for ES|QL embeddable
(#216325)](https://github.com/elastic/kibana/pull/216325)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2025-04-02T13:14:55Z","message":"[Discover]
Fix CSV for ES|QL embeddable (#216325)\n\n- Closes
https://github.com/elastic/kibana/issues/215893\n\n## Summary\n\nThis PR
extract the logic from Share > Export > Generate CSV into new\nutils and
uses it to fix CSV export for Dashboard panels.\n\n<img width=\"903\"
alt=\"Screenshot 2025-04-01 at 12 05
58\"\nsrc=\"https://github.com/user-attachments/assets/20e611d7-b1da-4b50-a8fc-e18ac3db3a55\"\n/>\n\n\n##
Testing\n\nPlease test for both data view mode and ES|QL mode. The steps
are the\nfollowing:\n1. Save a discover session\n2. Add it to a new
dashboard\n3. Save the Dashboard and switch to View mode\n4. Via panel
actions, press \"Generate CSV report\"\n5. Compare the CSV results with
what is shown in the grid\n6. Add a custom time range to the panel via
panel actions \"Settings\"\n7. Generate a CSV report and compare results
again\n\nAlso check that reporting still works when generated from
Discover page.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"dc78614d29da8f64f77840d3fc02846fcacfe2e5","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:fix","v9.0.0","Team:DataDiscovery","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Discover]
Fix CSV for ES|QL
embeddable","number":216325,"url":"https://github.com/elastic/kibana/pull/216325","mergeCommit":{"message":"[Discover]
Fix CSV for ES|QL embeddable (#216325)\n\n- Closes
https://github.com/elastic/kibana/issues/215893\n\n## Summary\n\nThis PR
extract the logic from Share > Export > Generate CSV into new\nutils and
uses it to fix CSV export for Dashboard panels.\n\n<img width=\"903\"
alt=\"Screenshot 2025-04-01 at 12 05
58\"\nsrc=\"https://github.com/user-attachments/assets/20e611d7-b1da-4b50-a8fc-e18ac3db3a55\"\n/>\n\n\n##
Testing\n\nPlease test for both data view mode and ES|QL mode. The steps
are the\nfollowing:\n1. Save a discover session\n2. Add it to a new
dashboard\n3. Save the Dashboard and switch to View mode\n4. Via panel
actions, press \"Generate CSV report\"\n5. Compare the CSV results with
what is shown in the grid\n6. Add a custom time range to the panel via
panel actions \"Settings\"\n7. Generate a CSV report and compare results
again\n\nAlso check that reporting still works when generated from
Discover page.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"dc78614d29da8f64f77840d3fc02846fcacfe2e5"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216325","number":216325,"mergeCommit":{"message":"[Discover]
Fix CSV for ES|QL embeddable (#216325)\n\n- Closes
https://github.com/elastic/kibana/issues/215893\n\n## Summary\n\nThis PR
extract the logic from Share > Export > Generate CSV into new\nutils and
uses it to fix CSV export for Dashboard panels.\n\n<img width=\"903\"
alt=\"Screenshot 2025-04-01 at 12 05
58\"\nsrc=\"https://github.com/user-attachments/assets/20e611d7-b1da-4b50-a8fc-e18ac3db3a55\"\n/>\n\n\n##
Testing\n\nPlease test for both data view mode and ES|QL mode. The steps
are the\nfollowing:\n1. Save a discover session\n2. Add it to a new
dashboard\n3. Save the Dashboard and switch to View mode\n4. Via panel
actions, press \"Generate CSV report\"\n5. Compare the CSV results with
what is shown in the grid\n6. Add a custom time range to the panel via
panel actions \"Settings\"\n7. Generate a CSV report and compare results
again\n\nAlso check that reporting still works when generated from
Discover page.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"dc78614d29da8f64f77840d3fc02846fcacfe2e5"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/216851","number":216851,"state":"OPEN"}]}]
BACKPORT-->
2025-04-11 13:00:50 -03:00
..
advanced_settings [Global settings] Restrict access to users with admin privileges (#153006) 2023-03-22 18:58:20 -06:00
aiops [8.18] [ML] AIOps: Change Point Detection in Dashboards embeddable fix (#217178) (#217316) 2025-04-07 16:07:33 +02:00
api_keys [8.x] [API keys] Improve functional tests for API keys management page (#200110) (#201207) 2024-11-25 06:35:56 -06:00
apm [8.x] Update &quot;APM&quot; title to &quot;Applications&quot; (#201522) (#201934) 2024-11-27 06:22:32 -06:00
canvas [8.x] [Dashboard] Hover actions for panels (#182535) (#197770) 2024-10-25 04:42:51 -05:00
cross_cluster_replication [8.x] [Dataset Quality] Introduce Kibana Management Feature (#194825) (#196266) 2024-10-15 06:26:45 -05:00
dashboard [8.18] [Dashboards] Add event-annotation-group to saved object privileges (#212926) (#214878) 2025-03-18 16:53:02 +02:00
data_views [8.x] [ES|QL] Present ES|QL as an equal to data views on the &quot;no data views&quot; screen (#194077) (#195684) 2024-10-10 01:50:53 +02:00
dataset_quality [8.x] [Dataset quality] Authz migration (#208343) (#208817) 2025-01-29 21:10:47 +01:00
dev_tools [8.x] kibana-management team module move (#203883) (#204274) 2024-12-13 17:31:11 -06:00
discover [8.18] [Discover] Fix CSV for ES|QL embeddable (#216325) (#216868) 2025-04-11 13:00:50 -03:00
graph [Dashboard] Remove library and drilldown notifications (#190797) 2024-09-09 14:11:15 -07:00
grok_debugger [CodeEditor] Add grok highlighting (#159334) 2023-06-13 12:05:26 +02:00
home
index_lifecycle_management [8.x] Enabling Full FTR, Integration, and Unit tests to the FIPS Test Pipeline (#192632) (#200780) 2024-11-19 13:03:12 -06:00
index_management [8.x] Add a warning callout when deleting managed assets (#207329) (#208491) 2025-01-30 10:25:39 +00:00
infra [8.18] [Logs UI] Make logs ui categories page tests more robust (#213834) (#214221) 2025-03-12 19:23:22 +01:00
ingest_pipelines [8.x] Add a warning callout when deleting managed assets (#207329) (#208491) 2025-01-30 10:25:39 +00:00
lens [8.18] [Lens] Do not crash when editing a Lens chart with a by reference annotation layer (#213090) (#213366) 2025-03-06 15:06:14 +01:00
license_management [8.x] [Dataset Quality] Introduce Kibana Management Feature (#194825) (#196266) 2024-10-15 06:26:45 -05:00
logstash [8.x] [Dataset Quality] Introduce Kibana Management Feature (#194825) (#196266) 2024-10-15 06:26:45 -05:00
managed_content [Managed Content] fix flaky tests (#191388) 2024-08-27 22:12:59 +02:00
management [8.x] [Stateful sidenav] Enable on-prem (#203239) (#203796) 2024-12-11 09:03:58 -06:00
maps [8.x] [Dashboard] Hover actions for panels (#182535) (#197770) 2024-10-25 04:42:51 -05:00
ml [8.x] [ML] Add Spaces column to Anomaly Detection, Data Frame Analytics and Trained Models management pages (#206696) (#208652) 2025-01-29 02:24:59 +01:00
monitoring [8.18] [Stack Monitoring] New FTR for "view logs" link (#208351) (#214296) 2025-03-13 19:11:37 +00:00
observability_logs_explorer [8.x] [One Discover] Display stacktrace in the logs overview tab (#204521) (#208115) 2025-01-28 15:05:59 +02:00
painless_lab Additional validation for painless test (#190226) 2024-08-13 17:13:42 +03:00
remote_clusters [8.x] [Remote Cluster] Improve UX (#206958) (#208584) 2025-01-28 19:42:38 +01:00
reporting
reporting_management [8.x] [Console] UX Improvements for phase 2 (#190698) (#193169) 2024-09-18 01:22:58 -05:00
rollup_job [8.18] [data views] data views + rollup index referenced by alias (#212592) (#213857) 2025-03-11 09:12:42 -07:00
saved_objects_management Revert "skip flaky suite (#183061)" (#183147) 2024-05-10 13:28:06 -04:00
saved_query_management [8.x] [Dashboard] Hover actions for panels (#182535) (#197770) 2024-10-25 04:42:51 -05:00
search_playground [Search] [Playground] Fix connectors broken page (#191852) 2024-09-06 11:13:25 +02:00
security [8.x] [Roles] Use Query Roles API for Role Management grid screen (#194630) (#208766) 2025-01-29 19:57:46 +01:00
slo/embeddables [Dashboard] Fix add panels order of items !! (#192082) 2024-09-05 10:18:30 +02:00
snapshot_restore [8.x] [Snapshot and Restore] Logsdb snapshot functional tests (#206318) (#207297) 2025-01-21 08:58:50 +00:00
spaces [8.x] [Roles] Use Query Roles API for Role Management grid screen (#194630) (#208766) 2025-01-29 19:57:46 +01:00
status_page
transform [8.18] [ML] Unskipping transform test (#209109) (#210211) 2025-02-07 18:47:50 +01:00
upgrade_assistant [8.x] [Dataset Quality] Introduce Kibana Management Feature (#194825) (#196266) 2024-10-15 06:26:45 -05:00
uptime [Synthetics] Decouple synthetics settings from uptime (#184009) 2024-05-29 17:05:08 +02:00
user_profiles [8.x] [Theme] configure appearance color mode (#203406) (#205239) 2024-12-30 05:35:23 -06:00
visualize [8.18] [Visualize] Unskip smoke test (#214960) (#215837) 2025-03-26 21:12:29 +02:00
watcher unskip tests for chrome, fix tags (#158405) 2023-05-26 09:19:53 +01:00