Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Logs onboarding] fixing type issues #167340

Merged
merged 7 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function InstallElasticAgent() {
useState<ElasticAgentPlatform>('linux-tar');

const enforcedDatasetName =
integration === dataset ? dataset : `${integration}.${dataset}`;
(integration === dataset ? dataset : `${integration}.${dataset}`) ?? '';
yngrdyn marked this conversation as resolved.
Show resolved Hide resolved

async function onContinue() {
await singleDatasetLocator!.navigate({
Expand Down Expand Up @@ -113,7 +113,7 @@ export function InstallElasticAgent() {
return callApi('POST /internal/observability_onboarding/logs/flow', {
params: {
body: {
name: datasetName,
name: datasetName ?? '',
yngrdyn marked this conversation as resolved.
Show resolved Hide resolved
type: 'logFiles',
state: {
datasetName,
Expand Down
3 changes: 0 additions & 3 deletions x-pack/plugins/observability_onboarding/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import {
ObservabilityOnboardingPluginStart,
} from './plugin';

export { OBSERVABILITY_ONBOARDING_LOCATOR } from './locators/onboarding_locator/locator_definition';
export type { ObservabilityOnboardingLocatorParams } from './locators/onboarding_locator/types';

export interface ConfigSchema {
ui: {
enabled: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { ObservabilityOnboardingLocatorParams } from './types';
import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability/locators';
import { PLUGIN_ID } from '../../../common';

export function getLocation(params: ObservabilityOnboardingLocatorParams) {
Expand Down