Skip to content

Commit

Permalink
moving tutorial to a common directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jun 23, 2021
1 parent 98f89a1 commit 157d7a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/apm/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class ApmPlugin implements Plugin<ApmPluginSetup, ApmPluginStart> {
'./services/rest/apm_observability_overview_fetchers'
);
const { hasFleetApmIntegrations } = await import(
'./services/rest/tutorial_apm_fleet_check'
'./tutorial/tutorial_apm_fleet_check'
);

const { createCallApmApi } = await import(
Expand Down Expand Up @@ -172,7 +172,7 @@ export class ApmPlugin implements Plugin<ApmPluginSetup, ApmPluginStart> {
// Registers custom component that is going to be render on fleet section
pluginSetupDeps.home?.tutorials.registerCustomComponent(
'TutorialFleetInstructions',
() => import('./components/shared/tutorial_fleet_instructions')
() => import('./tutorial/tutorial_fleet_instructions')
);

plugins.observability.dashboard.register({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { callApmApi } from './createCallApmApi';
import { callApmApi } from '../services/rest/createCallApmApi';

export async function hasFleetApmIntegrations() {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { i18n } from '@kbn/i18n';
import { HttpStart } from 'kibana/public';
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { APIReturnType } from '../../../services/rest/createCallApmApi';
import { APIReturnType } from '../../services/rest/createCallApmApi';

interface Props {
http: HttpStart;
Expand Down Expand Up @@ -92,7 +92,7 @@ function TutorialFleetInstructions({ http, basePath, isDarkTheme }: Props) {
<EuiButton
iconType="analyzeEvent"
color="secondary"
href={`${basePath}/app/fleet#/integrations/detail/apm-0.2.0/overview`}
href={`${basePath}/app/integrations#/detail/apm-0.3.0/overview`}
>
{i18n.translate(
'xpack.apm.tutorial.apmServer.fleet.apmIntegration.button',
Expand Down

0 comments on commit 157d7a4

Please sign in to comment.