Update remaining links in Synthetics and UX to new Exploratory View app (#154034)

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Coen Warmer 2023-03-30 14:58:59 +02:00 committed by GitHub
parent d620e897ef
commit c1e8247539
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 5 deletions

View file

@ -48,7 +48,7 @@ export const App = (props: {
},
];
const hrefLink = props.plugins.observability.createExploratoryViewUrl(
const hrefLink = props.plugins.exploratoryView.createExploratoryViewUrl(
{ reportType: 'kpi-over-time', allSeries: seriesList },
props.core.http.basePath.get()
);

View file

@ -8,6 +8,7 @@
import { Plugin, CoreSetup, AppNavLinkStatus } from '@kbn/core/public';
import type { DataPublicPluginStart } from '@kbn/data-plugin/public';
import type { ObservabilityPublicStart } from '@kbn/observability-plugin/public';
import type { ExploratoryViewPublicStart } from '@kbn/exploratory-view-plugin/public';
import type { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { mount } from './mount';
@ -18,6 +19,7 @@ export interface SetupDependencies {
export interface StartDependencies {
data: DataPublicPluginStart;
observability: ObservabilityPublicStart;
exploratoryView: ExploratoryViewPublicStart;
}
export class ExploratoryViewExamplePlugin

View file

@ -20,5 +20,6 @@
"@kbn/developer-examples-plugin",
"@kbn/data-views-plugin",
"@kbn/kibana-react-plugin",
"@kbn/exploratory-view-plugin",
]
}

View file

@ -9,7 +9,7 @@ import React from 'react';
import { EuiButton } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import moment from 'moment';
import { AllSeries, createExploratoryViewUrl } from '@kbn/observability-plugin/public';
import { AllSeries, createExploratoryViewUrl } from '@kbn/exploratory-view-plugin/public';
import { euiStyled } from '@kbn/kibana-react-plugin/common';
import { useKibana } from '@kbn/kibana-react-plugin/public';
import { SYNTHETICS_INDEX_PATTERN } from '../../../../../../common/constants';

View file

@ -10,7 +10,7 @@ import { EuiButton } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import moment from 'moment';
import { useSelector } from 'react-redux';
import { AllSeries, createExploratoryViewUrl } from '@kbn/observability-plugin/public';
import { AllSeries, createExploratoryViewUrl } from '@kbn/exploratory-view-plugin/public';
import { euiStyled } from '@kbn/kibana-react-plugin/common';
import { useKibana } from '@kbn/kibana-react-plugin/public';
import { JourneyStep } from '../../../../../common/runtime_types';

View file

@ -8,11 +8,11 @@
import React from 'react';
import { EuiHeaderLinks, EuiHeaderLink, EuiToolTip } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { HeaderMenuPortal } from '@kbn/observability-plugin/public';
import {
RECORDS_FIELD,
createExploratoryViewUrl,
HeaderMenuPortal,
} from '@kbn/observability-plugin/public';
} from '@kbn/exploratory-view-plugin/public';
import { AppMountParameters } from '@kbn/core/public';
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
import { SERVICE_NAME } from '../../../../../common/elasticsearch_fieldnames';