mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
fix url locator
This commit is contained in:
parent
a01975dba7
commit
41b4337f9a
4 changed files with 7 additions and 48 deletions
|
@ -63,20 +63,6 @@ export const getChangePointChartEmbeddableFactory = (
|
||||||
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
||||||
const [coreStart, pluginStart] = await getStartServices();
|
const [coreStart, pluginStart] = await getStartServices();
|
||||||
|
|
||||||
const { http, uiSettings, notifications, ...startServices } = coreStart;
|
|
||||||
const { lens, data, usageCollection, fieldFormats } = pluginStart;
|
|
||||||
|
|
||||||
const deps = {
|
|
||||||
http,
|
|
||||||
uiSettings,
|
|
||||||
data,
|
|
||||||
notifications,
|
|
||||||
lens,
|
|
||||||
usageCollection,
|
|
||||||
fieldFormats,
|
|
||||||
...startServices,
|
|
||||||
};
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
api: timeRangeApi,
|
api: timeRangeApi,
|
||||||
comparators: timeRangeComparators,
|
comparators: timeRangeComparators,
|
||||||
|
@ -95,7 +81,7 @@ export const getChangePointChartEmbeddableFactory = (
|
||||||
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
||||||
|
|
||||||
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
||||||
await deps.data.dataViews.get(state.dataViewId),
|
await pluginStart.data.dataViews.get(state.dataViewId),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const api = buildApi(
|
const api = buildApi(
|
||||||
|
|
|
@ -61,20 +61,6 @@ export const getLogRateAnalysisEmbeddableFactory = (
|
||||||
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
||||||
const [coreStart, pluginStart] = await getStartServices();
|
const [coreStart, pluginStart] = await getStartServices();
|
||||||
|
|
||||||
const { http, uiSettings, notifications, ...startServices } = coreStart;
|
|
||||||
const { lens, data, usageCollection, fieldFormats } = pluginStart;
|
|
||||||
|
|
||||||
const deps = {
|
|
||||||
http,
|
|
||||||
uiSettings,
|
|
||||||
data,
|
|
||||||
notifications,
|
|
||||||
lens,
|
|
||||||
usageCollection,
|
|
||||||
fieldFormats,
|
|
||||||
...startServices,
|
|
||||||
};
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
api: timeRangeApi,
|
api: timeRangeApi,
|
||||||
comparators: timeRangeComparators,
|
comparators: timeRangeComparators,
|
||||||
|
@ -93,8 +79,8 @@ export const getLogRateAnalysisEmbeddableFactory = (
|
||||||
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
||||||
|
|
||||||
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
||||||
await deps.data.dataViews.get(
|
await pluginStart.data.dataViews.get(
|
||||||
state.dataViewId ?? (await deps.data.dataViews.getDefaultId())
|
state.dataViewId ?? (await pluginStart.data.dataViews.getDefaultId())
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -60,20 +60,6 @@ export const getPatternAnalysisEmbeddableFactory = (
|
||||||
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
||||||
const [coreStart, pluginStart] = await getStartServices();
|
const [coreStart, pluginStart] = await getStartServices();
|
||||||
|
|
||||||
const { http, uiSettings, notifications, ...startServices } = coreStart;
|
|
||||||
const { lens, data, usageCollection, fieldFormats } = pluginStart;
|
|
||||||
|
|
||||||
const deps = {
|
|
||||||
http,
|
|
||||||
uiSettings,
|
|
||||||
data,
|
|
||||||
notifications,
|
|
||||||
lens,
|
|
||||||
usageCollection,
|
|
||||||
fieldFormats,
|
|
||||||
...startServices,
|
|
||||||
};
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
api: timeRangeApi,
|
api: timeRangeApi,
|
||||||
comparators: timeRangeComparators,
|
comparators: timeRangeComparators,
|
||||||
|
@ -92,8 +78,8 @@ export const getPatternAnalysisEmbeddableFactory = (
|
||||||
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
||||||
|
|
||||||
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
||||||
await deps.data.dataViews.get(
|
await pluginStart.data.dataViews.get(
|
||||||
state.dataViewId ?? (await deps.data.dataViews.getDefaultId())
|
state.dataViewId ?? (await pluginStart.data.dataViews.getDefaultId())
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ const LogRateAnalysisEmbeddableWrapperWithDeps: FC<LogRateAnalysisPropsWithDeps>
|
||||||
lastReloadRequestTime,
|
lastReloadRequestTime,
|
||||||
}) => {
|
}) => {
|
||||||
const deps = useMemo(() => {
|
const deps = useMemo(() => {
|
||||||
const { lens, data, usageCollection, fieldFormats, charts, storage, unifiedSearch } =
|
const { lens, data, usageCollection, fieldFormats, charts, share, storage, unifiedSearch } =
|
||||||
pluginStart;
|
pluginStart;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -84,6 +84,7 @@ const LogRateAnalysisEmbeddableWrapperWithDeps: FC<LogRateAnalysisPropsWithDeps>
|
||||||
usageCollection,
|
usageCollection,
|
||||||
fieldFormats,
|
fieldFormats,
|
||||||
charts,
|
charts,
|
||||||
|
share,
|
||||||
storage,
|
storage,
|
||||||
unifiedSearch,
|
unifiedSearch,
|
||||||
...coreStart,
|
...coreStart,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue