Skip to content

Commit 7c50bff

Browse files
Merge branch 'main' into add-evals-kafka-scenarios-554
2 parents 22c4c63 + a87a45b commit 7c50bff

3 files changed

Lines changed: 17 additions & 12 deletions

File tree

oas_docs/overlays/dashboards.overlays.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ actions:
1515
## When to use this API
1616
1717
- Use this API to define a complete, self-contained dashboard in a single payload, including inline visualizations (both data view and ES|QL based), controls, and filters.
18-
- Use the [Visualizations API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createvisualization) to create reusable charts saved to your [visualization library](https://www.elastic.co/docs/explore-analyze/visualize/visualize-library). You can then embed them in dashboards as linked panels using their ID.
18+
- Use the [Visualizations API](#operation/post-visualizations) to create reusable charts saved to your [visualization library](https://www.elastic.co/docs/explore-analyze/visualize/visualize-library). You can then embed them in dashboards as linked panels using their ID.
1919
2020
## Get started
2121
@@ -27,7 +27,7 @@ actions:
2727
2828
### Try it now
2929
30-
Create your first dashboard right now. The following example creates a dashboard with an ES|QL line chart showing log entries over time. You can run it as-is once you have the [Kibana sample logs dataset](https://www.elastic.co/docs/explore-analyze/index#add-sample-data) installed:
30+
Create your first dashboard right now. The following example creates a dashboard with an ES|QL line chart showing log entries over time. You can run it as-is once you have the [Kibana sample logs dataset](https://www.elastic.co/docs/manage-data/ingest/sample-data) installed:
3131
3232
```bash
3333
curl -X POST "${KIBANA_URL}/api/dashboards" \
@@ -78,7 +78,7 @@ actions:
7878
}'
7979
```
8080
81-
All examples on this page use [Kibana sample datasets](https://www.elastic.co/docs/explore-analyze/index#add-sample-data) (`kibana_sample_data_logs`, `kibana_sample_data_ecommerce`, `kibana_sample_data_flights`). To use your own data, replace the `FROM` pattern and field references.
81+
All examples on this page use [Kibana sample datasets](https://www.elastic.co/docs/manage-data/ingest/sample-data) (`kibana_sample_data_logs`, `kibana_sample_data_ecommerce`, `kibana_sample_data_flights`). To use your own data, replace the `FROM` pattern and field references.
8282
8383
### Dashboard structure
8484
@@ -126,7 +126,7 @@ actions:
126126
127127
`vis`, `discover_session`, and `markdown` panels can be embedded **inline** (full config stored in the dashboard) or **linked from library** (references a library item by ID).
128128
129-
For the full `config` schema for visualization panels, including chart types, metric operations, and breakdowns, refer to the [Visualizations API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createvisualization).
129+
For the full `config` schema for visualization panels, including chart types, metric operations, and breakdowns, refer to the [Visualizations API](#operation/post-visualizations).
130130
131131
- **Inline**: use when the panel is specific to this dashboard or must work across Kibana spaces. The panel configuration goes directly inside `config`:
132132
@@ -158,7 +158,7 @@ actions:
158158
}
159159
```
160160
161-
- **Linked from library**: references an item in your library by its ID. Use `ref_id` with any supported panel type (`vis`, `discover_session`, `markdown`). Use the [Visualizations API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createvisualization) to create and retrieve IDs for visualization items.
161+
- **Linked from library**: references an item in your library by its ID. Use `ref_id` with any supported panel type (`vis`, `discover_session`, `markdown`). Use the [Visualizations API](#operation/post-visualizations) to create and retrieve IDs for visualization items.
162162
163163
```json
164164
{
@@ -207,7 +207,7 @@ actions:
207207
}
208208
```
209209
210-
- **`xy` charts**: `data_source` goes inside each layer. Use `BUCKET(@timestamp, 75, ?_tstart, ?_tend)` to align time-series buckets with the dashboard's selected time range. For a complete xy chart example, see the [Create a dashboard](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createdashboard) endpoint.
210+
- **`xy` charts**: `data_source` goes inside each layer. Use `BUCKET(@timestamp, 75, ?_tstart, ?_tend)` to align time-series buckets with the dashboard's selected time range. For a complete xy chart example, see the [Create a dashboard](#operation/post-dashboards) endpoint.
211211
212212
externalDocs:
213213
description: Dashboards documentation

oas_docs/overlays/visualizations.overlays.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ actions:
1414
1515
## When to use this API
1616
17-
- Use this API to create reusable charts saved to the visualization library. You can then embed them in dashboards by referencing their ID from the [Dashboards API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createdashboard).
18-
- Use the [Dashboards API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createdashboard) when you want to define a complete dashboard in one request, or when you need ES|QL-based visualizations.
17+
- Use this API to create reusable charts saved to the visualization library. You can then embed them in dashboards by referencing their ID from the [Dashboards API](#operation/post-dashboards).
18+
- Use the [Dashboards API](#operation/post-dashboards) when you want to define a complete dashboard in one request, or when you need ES|QL-based visualizations.
1919
2020
## Get started
2121
@@ -27,7 +27,7 @@ actions:
2727
2828
### Try it now
2929
30-
The following example creates a line chart showing log entries over time. You can run it after installing the [Kibana sample logs dataset](https://www.elastic.co/docs/explore-analyze/index#add-sample-data):
30+
The following example creates a line chart showing log entries over time. You can run it after installing the [Kibana sample logs dataset](https://www.elastic.co/docs/manage-data/ingest/sample-data):
3131
3232
```bash
3333
curl -X POST "${KIBANA_URL}/api/visualizations" \
@@ -59,18 +59,18 @@ actions:
5959
}'
6060
```
6161
62-
All curl examples in this reference use [Kibana sample datasets](https://www.elastic.co/docs/explore-analyze/index#add-sample-data) (`kibana_sample_data_logs`, `kibana_sample_data_ecommerce`, `kibana_sample_data_flights`). To use your own data, replace the `index_pattern` and field names.
62+
All curl examples in this reference use [Kibana sample datasets](https://www.elastic.co/docs/manage-data/ingest/sample-data) (`kibana_sample_data_logs`, `kibana_sample_data_ecommerce`, `kibana_sample_data_flights`). To use your own data, replace the `index_pattern` and field names.
6363
6464
### How a visualization is structured
6565
6666
Every visualization requires at minimum:
6767
6868
- **`type`**: the chart to render. Each chart type has its own required fields, so the full structure of the request body depends on which `type` you specify.
69-
- **`data_source`**: how data is fetched. You can reference an existing Kibana data view by ID (`"type": "data_view_reference"`), define a data view inline using an index pattern (`"type": "data_view_spec"`), or use an ES|QL query (`"type": "esql"`). Note that ES|QL is only supported via the [Dashboards API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createdashboard). For most chart types, `data_source` is a top-level field. For XY charts, it belongs inside each layer in `layers[]`.
69+
- **`data_source`**: how data is fetched. You can reference an existing Kibana data view by ID (`"type": "data_view_reference"`), define a data view inline using an index pattern (`"type": "data_view_spec"`), or use an ES|QL query (`"type": "esql"`). Note that ES|QL is only supported via the [Dashboards API](#operation/post-dashboards). For most chart types, `data_source` is a top-level field. For XY charts, it belongs inside each layer in `layers[]`.
7070
7171
You can also include `query` and `filters` to apply KQL or Lucene filters to all chart data. Both are optional and can be omitted.
7272
73-
Everything else is chart-specific: `layers` for XY charts, `metrics` for metric charts, and so on. Refer to the request schema on the [Create a visualization](https://www.elastic.co/docs/api/doc/kibana/operation/operation-createvisualization) endpoint for the full shape of each type.
73+
Everything else is chart-specific: `layers` for XY charts, `metrics` for metric charts, and so on. Refer to the request schema on the [Create a visualization](#operation/post-visualizations) endpoint for the full shape of each type.
7474
7575
### Chart types
7676

src/platform/test/functional/services/search_sessions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export class SearchSessionsService extends FtrService {
5858
}: { searchSessionName?: string; isSubmitButton?: boolean; withRefresh?: boolean } = {}) {
5959
this.log.debug('save the search session');
6060
if (withRefresh) {
61+
// The button might be in the cancel or loading state, in those cases we won't be able to find the test subject, so we wait for it to be present.
62+
await this.retry.waitFor('refresh button to be present', async () => {
63+
return await this.testSubjects.exists('querySubmitButton');
64+
});
65+
6166
await this.testSubjects.clickWhenNotDisabledWithoutRetry('querySubmitButton');
6267
}
6368

0 commit comments

Comments
 (0)