[Sample data][Flights] Use Lens by value panels where possible (#153634)

## Summary

This PR migrates the flights sample dataset to work with Lens by value
panels instead of legacy visualizations (TSVB, agg based)

Changes:
- Changed the legacy Lens metrics to the new metric
- Changed the tagcloud with a horizontal bar
- Removed the legacy SOs
- Removed the library visualizations and use by value panels instead

Note: The TSVB goal was not converted to Lens as it is not possible atm
to divide with the bucket interval

### How to test
Remove the flights dataset and reinstall it

<img width="1655" alt="image"
src="https://user-images.githubusercontent.com/17003240/227503741-2af87636-12bb-4a95-85ac-a82d8fa94e9d.png">

<img width="1657" alt="image"
src="https://user-images.githubusercontent.com/17003240/227511662-1d4604ba-a82c-478e-bda1-47aea6cc01ba.png">
This commit is contained in:
Stratoula Kalafateli 2023-03-27 13:49:52 +03:00 committed by GitHub
parent 58b235650a
commit e01f29e8a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 48 additions and 174 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Before After
Before After

File diff suppressed because one or more lines are too long

View file

@ -46,7 +46,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('add a visualization', async () => {
await testSubjects.setValue('savedObjectFinderSearchInput', '[Flights]');
await testSubjects.click('savedObjectTitle[Flights]-Delay-Buckets');
await testSubjects.click('savedObjectTitle[Flights]-Departures-Count-Map');
await a11y.testAppSnapshot();
});
@ -87,7 +87,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('Add one more saved object to cancel it', async () => {
await testSubjects.setValue('savedObjectFinderSearchInput', '[Flights]');
await testSubjects.click('savedObjectTitle[Flights]-Destination-Weather');
await testSubjects.click(
'savedObjectTitle[Flights]-Airport-Connections-(Hover-Over-Airport)'
);
await a11y.testAppSnapshot();
});

View file

@ -64,7 +64,7 @@ export default function ({ getService }: FtrProviderContext) {
expect(resp.body).to.eql({
elasticsearchIndicesCreated: { kibana_sample_data_flights: 13059 },
kibanaSavedObjectsLoaded: 11,
kibanaSavedObjectsLoaded: 8,
});
});

View file

@ -3609,13 +3609,8 @@
"home.sampleData.ecommerceSpecDescription": "Exemple de données, visualisations et tableaux de bord pour le suivi des commandes de-commerce.",
"home.sampleData.ecommerceSpecTitle": "Exemple de commandes de-commerce",
"home.sampleData.flightsSpec.airportConnectionsTitle": "[Vols] Connexions aéroportuaires (passage au-dessus d'un aéroport)",
"home.sampleData.flightsSpec.delayBucketsTitle": "[Vols] Compartiments retard",
"home.sampleData.flightsSpec.delaysAndCancellationsTitle": "[Vols] Retards et annulations",
"home.sampleData.flightsSpec.departuresCountMapTitle": "[Vols] Mappage du nombre de départs",
"home.sampleData.flightsSpec.destinationWeatherTitle": "[Vols] Météo à la destination",
"home.sampleData.flightsSpec.flightLogTitle": "[Vols] Journal de vol",
"home.sampleData.flightsSpec.globalFlightDashboardDescription": "Analyser des données aéroportuaires factices pour ES-Air, Logstash Airways, Kibana Airlines et JetBeats",
"home.sampleData.flightsSpec.globalFlightDashboardTitle": "[Vols] Tableau de bord des vols internationaux",
"home.sampleData.flightsSpecDescription": "Exemple de données, de visualisations et de tableaux de bord pour le monitoring des itinéraires de vol.",
"home.sampleData.flightsSpecTitle": "Exemple de données aéroportuaires",
"home.sampleData.logsSpec.bytesDistributionTitle": "[Logs] Distribution des octets",

View file

@ -3609,13 +3609,8 @@
"home.sampleData.ecommerceSpecDescription": "e コマースの注文をトラッキングするサンプルデータ、ビジュアライゼーション、ダッシュボードです。",
"home.sampleData.ecommerceSpecTitle": "サンプル e コマース注文",
"home.sampleData.flightsSpec.airportConnectionsTitle": "[フライト] 空港乗り継ぎ(空港にカーソルを合わせてください)",
"home.sampleData.flightsSpec.delayBucketsTitle": "[フライト] 遅延バケット",
"home.sampleData.flightsSpec.delaysAndCancellationsTitle": "[フライト] 遅延・欠航",
"home.sampleData.flightsSpec.departuresCountMapTitle": "[フライト] 出発カウントマップ",
"home.sampleData.flightsSpec.destinationWeatherTitle": "[フライト] 目的地の天候",
"home.sampleData.flightsSpec.flightLogTitle": "[フライト] 飛行記録",
"home.sampleData.flightsSpec.globalFlightDashboardDescription": "ES-Air、Logstash Airways、Kibana Airlines、JetBeats のサンプル飛行データを分析します",
"home.sampleData.flightsSpec.globalFlightDashboardTitle": "[フライト] グローバルフライトダッシュボード",
"home.sampleData.flightsSpecDescription": "飛行ルートを監視するサンプルデータ、ビジュアライゼーション、ダッシュボードです。",
"home.sampleData.flightsSpecTitle": "サンプル飛行データ",
"home.sampleData.logsSpec.bytesDistributionTitle": "[Logs]バイト分布",

View file

@ -3609,13 +3609,8 @@
"home.sampleData.ecommerceSpecDescription": "用于追踪电子商务订单的样例数据、可视化和仪表板。",
"home.sampleData.ecommerceSpecTitle": "样例电子商务订单",
"home.sampleData.flightsSpec.airportConnectionsTitle": "[航班] 机场航线(将鼠标悬停在机场上)",
"home.sampleData.flightsSpec.delayBucketsTitle": "[航班] 延误存储桶",
"home.sampleData.flightsSpec.delaysAndCancellationsTitle": "[航班] 延误与取消",
"home.sampleData.flightsSpec.departuresCountMapTitle": "[航班] 离港计数地图",
"home.sampleData.flightsSpec.destinationWeatherTitle": "[航班] 到达地天气",
"home.sampleData.flightsSpec.flightLogTitle": "[航班] 飞行日志",
"home.sampleData.flightsSpec.globalFlightDashboardDescription": "分析 ES-Air、Logstash Airways、Kibana Airlines 和 JetBeats 的模拟航班数据",
"home.sampleData.flightsSpec.globalFlightDashboardTitle": "[航班] 全球航班仪表板",
"home.sampleData.flightsSpecDescription": "用于监测航班路线的样例数据、可视化和仪表板。",
"home.sampleData.flightsSpecTitle": "样例航班数据",
"home.sampleData.logsSpec.bytesDistributionTitle": "[Logs] 字节分布",