diff --git a/.eslintignore b/.eslintignore index f757ed9a1bf98c..66684fbcd52e6a 100644 --- a/.eslintignore +++ b/.eslintignore @@ -27,6 +27,7 @@ snapshots.js /x-pack/plugins/canvas/shareable_runtime/build /x-pack/plugins/canvas/storybook/build /x-pack/plugins/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/** +/x-pack/plugins/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/** # package overrides /packages/elastic-eslint-config-kibana diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 95c11b05a97836..26616ab237660e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -107,6 +107,8 @@ /x-pack/plugins/observability/public/components/shared/exploratory_view @elastic/uptime /x-pack/test/functional_with_es_ssl/apps/uptime @elastic/uptime /x-pack/test/functional/apps/uptime @elastic/uptime +/x-pack/test/functional/es_archives/uptime @elastic/uptime +/x-pack/test/functional/services/uptime @elastic/uptime /x-pack/test/api_integration/apis/uptime @elastic/uptime # Client Side Monitoring / Uptime (lives in APM directories but owned by Uptime) diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts index 25a2a964a778fd..67f34c7503c59c 100644 --- a/src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_chart.ts @@ -50,6 +50,14 @@ export function fetchChart( sendLoadingMsg(charts$); sendLoadingMsg(totalHits$); + const executionContext = { + type: 'application', + name: 'discover', + description: 'fetch chart data and total hits', + url: window.location.pathname, + id: '', + }; + const fetch$ = searchSource .fetch$({ abortSignal: abortController.signal, @@ -64,6 +72,7 @@ export function fetchChart( 'This request queries Elasticsearch to fetch the aggregation data for the chart.', }), }, + executionContext, }) .pipe(filter((res) => isCompleteResponse(res))); diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts index edaf86cef6874b..2f06a9dbbb3db3 100644 --- a/src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_documents.ts @@ -41,6 +41,14 @@ export const fetchDocuments = ( sendLoadingMsg(documents$); + const executionContext = { + type: 'application', + name: 'discover', + description: 'fetch documents', + url: window.location.pathname, + id: '', + }; + const fetch$ = searchSource .fetch$({ abortSignal: abortController.signal, @@ -54,6 +62,7 @@ export const fetchDocuments = ( defaultMessage: 'This request queries Elasticsearch to fetch the documents.', }), }, + executionContext, }) .pipe(filter((res) => isCompleteResponse(res))); diff --git a/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts b/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts index 4fb43652f28c33..9688f5ddd614d4 100644 --- a/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts +++ b/src/plugins/discover/public/application/apps/main/utils/fetch_total_hits.ts @@ -46,6 +46,14 @@ export function fetchTotalHits( sendLoadingMsg(totalHits$); + const executionContext = { + type: 'application', + name: 'discover', + description: 'fetch total hits', + url: window.location.pathname, + id: '', + }; + const fetch$ = searchSource .fetch$({ inspector: { @@ -59,6 +67,7 @@ export function fetchTotalHits( }, abortSignal: abortController.signal, sessionId: searchSessionId, + executionContext, }) .pipe(filter((res) => isCompleteResponse(res))); diff --git a/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx b/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx index 3fd7b2f50d319f..1981f0228d2c7c 100644 --- a/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx +++ b/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx @@ -170,6 +170,14 @@ export class SavedSearchEmbeddable this.searchProps!.isLoading = true; this.updateOutput({ loading: true, error: undefined }); + const executionContext = { + type: this.type, + name: 'discover', + id: this.savedSearch.id, + description: this.output.title || this.output.defaultTitle || '', + url: this.output.editUrl, + parent: this.input.executionContext, + }; try { // Make the request @@ -187,6 +195,7 @@ export class SavedSearchEmbeddable 'This request queries Elasticsearch to fetch the data for the search.', }), }, + executionContext, }) .toPromise(); this.updateOutput({ loading: false, error: undefined }); diff --git a/src/plugins/kibana_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap b/src/plugins/kibana_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap index 230d31ac9e0b64..7b2729d2e1b682 100644 --- a/src/plugins/kibana_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap +++ b/src/plugins/kibana_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap @@ -1,52 +1,241 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`is rendered 1`] = ` - - hint element should be tabable 1`] = ` +
+`; + +exports[` is rendered 1`] = ` + +
+ +

+ + Enter + , + } + } + /> +

+

+ + Esc + , + } + } + /> +

+ + } + delay="regular" + display="block" + position="top" + > + +
+ + + - - + > +
+