From 157d7a426c6afb2b077b73f0d38f7dc73b79ad11 Mon Sep 17 00:00:00 2001 From: cauemarcondes Date: Wed, 23 Jun 2021 09:55:05 -0400 Subject: [PATCH] moving tutorial to a common directory --- x-pack/plugins/apm/public/plugin.ts | 4 ++-- .../{services/rest => tutorial}/tutorial_apm_fleet_check.ts | 2 +- .../shared => tutorial}/tutorial_fleet_instructions/index.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename x-pack/plugins/apm/public/{services/rest => tutorial}/tutorial_apm_fleet_check.ts (89%) rename x-pack/plugins/apm/public/{components/shared => tutorial}/tutorial_fleet_instructions/index.tsx (95%) diff --git a/x-pack/plugins/apm/public/plugin.ts b/x-pack/plugins/apm/public/plugin.ts index 40c424c6a42842..012856ca9213c5 100644 --- a/x-pack/plugins/apm/public/plugin.ts +++ b/x-pack/plugins/apm/public/plugin.ts @@ -143,7 +143,7 @@ export class ApmPlugin implements Plugin { './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( @@ -172,7 +172,7 @@ export class ApmPlugin implements Plugin { // 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({ diff --git a/x-pack/plugins/apm/public/services/rest/tutorial_apm_fleet_check.ts b/x-pack/plugins/apm/public/tutorial/tutorial_apm_fleet_check.ts similarity index 89% rename from x-pack/plugins/apm/public/services/rest/tutorial_apm_fleet_check.ts rename to x-pack/plugins/apm/public/tutorial/tutorial_apm_fleet_check.ts index d85cd6b3c8b482..8db8614d606a9e 100644 --- a/x-pack/plugins/apm/public/services/rest/tutorial_apm_fleet_check.ts +++ b/x-pack/plugins/apm/public/tutorial/tutorial_apm_fleet_check.ts @@ -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 { diff --git a/x-pack/plugins/apm/public/components/shared/tutorial_fleet_instructions/index.tsx b/x-pack/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx similarity index 95% rename from x-pack/plugins/apm/public/components/shared/tutorial_fleet_instructions/index.tsx rename to x-pack/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx index 66aa149067accf..8a81b7a994e761 100644 --- a/x-pack/plugins/apm/public/components/shared/tutorial_fleet_instructions/index.tsx +++ b/x-pack/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx @@ -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; @@ -92,7 +92,7 @@ function TutorialFleetInstructions({ http, basePath, isDarkTheme }: Props) { {i18n.translate( 'xpack.apm.tutorial.apmServer.fleet.apmIntegration.button',