Skip to content

Commit

Permalink
Merge branch 'master' into obs-rac-remove-unused-api
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Aug 12, 2021
2 parents 4bbb744 + 320fc8b commit ad01a55
Show file tree
Hide file tree
Showing 179 changed files with 4,704 additions and 2,633 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -54,6 +62,7 @@ export const fetchDocuments = (
defaultMessage: 'This request queries Elasticsearch to fetch the documents.',
}),
},
executionContext,
})
.pipe(filter((res) => isCompleteResponse(res)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -59,6 +67,7 @@ export function fetchTotalHits(
},
abortSignal: abortController.signal,
sessionId: searchSessionId,
executionContext,
})
.pipe(filter((res) => isCompleteResponse(res)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 });
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad01a55

Please sign in to comment.