Fix some type issues for APM UI (#167347)

## Summary

We're breaking https://github.com/elastic/kibana/pull/166813 up into
smaller PRs in the interest of getting PRs through sooner for type
fixes. These are the changes for APM UI.
This commit is contained in:
Brad White 2023-09-27 01:19:11 -06:00 committed by GitHub
parent 26873aff87
commit 7a87c3615d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View file

@ -275,6 +275,7 @@ export async function getApmServiceSummary({
start,
end,
serviceName,
environment,
}),
getAnomalies({
serviceName,

View file

@ -63,7 +63,7 @@ export function InstallElasticAgent() {
useState<ElasticAgentPlatform>('linux-tar');
const enforcedDatasetName =
integration === dataset ? dataset : `${integration}.${dataset}`;
(integration === dataset ? dataset : `${integration}.${dataset}`) || '';
async function onContinue() {
await singleDatasetLocator!.navigate({
@ -113,7 +113,7 @@ export function InstallElasticAgent() {
return callApi('POST /internal/observability_onboarding/logs/flow', {
params: {
body: {
name: datasetName,
name: datasetName || '',
type: 'logFiles',
state: {
datasetName,

View file

@ -17,7 +17,7 @@ import {
ObservabilityOnboardingPluginStart,
} from './plugin';
export { OBSERVABILITY_ONBOARDING_LOCATOR } from './locators/onboarding_locator/locator_definition';
export type { OBSERVABILITY_ONBOARDING_LOCATOR } from './locators/onboarding_locator/locator_definition';
export type { ObservabilityOnboardingLocatorParams } from './locators/onboarding_locator/types';
export interface ConfigSchema {

View file

@ -11,6 +11,8 @@ import {
OBSERVABILITY_ONBOARDING_LOCATOR,
} from '@kbn/deeplinks-observability/locators';
export type { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability/locators';
export class ObservabilityOnboardingLocatorDefinition
implements LocatorDefinition<ObservabilityOnboardingLocatorParams>
{

View file

@ -8,5 +8,6 @@
import type { LocatorPublic } from '@kbn/share-plugin/public';
import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability/locators';
export type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability/locators';
export type ObservabilityOnboardingLocator =
LocatorPublic<ObservabilityOnboardingLocatorParams>;