mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -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) => {
|
||||
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 {
|
||||
api: timeRangeApi,
|
||||
comparators: timeRangeComparators,
|
||||
|
@ -95,7 +81,7 @@ export const getChangePointChartEmbeddableFactory = (
|
|||
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
||||
|
||||
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
||||
await deps.data.dataViews.get(state.dataViewId),
|
||||
await pluginStart.data.dataViews.get(state.dataViewId),
|
||||
]);
|
||||
|
||||
const api = buildApi(
|
||||
|
|
|
@ -61,20 +61,6 @@ export const getLogRateAnalysisEmbeddableFactory = (
|
|||
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
||||
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 {
|
||||
api: timeRangeApi,
|
||||
comparators: timeRangeComparators,
|
||||
|
@ -93,8 +79,8 @@ export const getLogRateAnalysisEmbeddableFactory = (
|
|||
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
||||
|
||||
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
||||
await deps.data.dataViews.get(
|
||||
state.dataViewId ?? (await deps.data.dataViews.getDefaultId())
|
||||
await pluginStart.data.dataViews.get(
|
||||
state.dataViewId ?? (await pluginStart.data.dataViews.getDefaultId())
|
||||
),
|
||||
]);
|
||||
|
||||
|
|
|
@ -60,20 +60,6 @@ export const getPatternAnalysisEmbeddableFactory = (
|
|||
buildEmbeddable: async (state, buildApi, uuid, parentApi) => {
|
||||
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 {
|
||||
api: timeRangeApi,
|
||||
comparators: timeRangeComparators,
|
||||
|
@ -92,8 +78,8 @@ export const getPatternAnalysisEmbeddableFactory = (
|
|||
const blockingError = new BehaviorSubject<Error | undefined>(undefined);
|
||||
|
||||
const dataViews$ = new BehaviorSubject<DataView[] | undefined>([
|
||||
await deps.data.dataViews.get(
|
||||
state.dataViewId ?? (await deps.data.dataViews.getDefaultId())
|
||||
await pluginStart.data.dataViews.get(
|
||||
state.dataViewId ?? (await pluginStart.data.dataViews.getDefaultId())
|
||||
),
|
||||
]);
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ const LogRateAnalysisEmbeddableWrapperWithDeps: FC<LogRateAnalysisPropsWithDeps>
|
|||
lastReloadRequestTime,
|
||||
}) => {
|
||||
const deps = useMemo(() => {
|
||||
const { lens, data, usageCollection, fieldFormats, charts, storage, unifiedSearch } =
|
||||
const { lens, data, usageCollection, fieldFormats, charts, share, storage, unifiedSearch } =
|
||||
pluginStart;
|
||||
|
||||
return {
|
||||
|
@ -84,6 +84,7 @@ const LogRateAnalysisEmbeddableWrapperWithDeps: FC<LogRateAnalysisPropsWithDeps>
|
|||
usageCollection,
|
||||
fieldFormats,
|
||||
charts,
|
||||
share,
|
||||
storage,
|
||||
unifiedSearch,
|
||||
...coreStart,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue