From d1acfe5d82cc947d8ab8f2f53a7020393322d601 Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Mon, 25 Feb 2019 15:17:57 -0500 Subject: [PATCH] remove unused testbed directory in watcher (#31917) (#31929) --- x-pack/plugins/watcher/plugin_definition.js | 1 - .../testbed/components/testbed/index.js | 7 ----- .../testbed/components/testbed/testbed.html | 10 ------- .../testbed/components/testbed/testbed.js | 26 ------------------- .../watcher/public/sections/testbed/index.js | 8 ------ .../testbed/register_management_section.js | 13 ---------- .../sections/testbed/testbed_route.html | 1 - .../public/sections/testbed/testbed_route.js | 26 ------------------- 8 files changed, 92 deletions(-) delete mode 100644 x-pack/plugins/watcher/public/sections/testbed/components/testbed/index.js delete mode 100644 x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.html delete mode 100644 x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.js delete mode 100644 x-pack/plugins/watcher/public/sections/testbed/index.js delete mode 100644 x-pack/plugins/watcher/public/sections/testbed/register_management_section.js delete mode 100644 x-pack/plugins/watcher/public/sections/testbed/testbed_route.html delete mode 100644 x-pack/plugins/watcher/public/sections/testbed/testbed_route.js diff --git a/x-pack/plugins/watcher/plugin_definition.js b/x-pack/plugins/watcher/plugin_definition.js index 2b46c3569d6ad..269170b845c39 100644 --- a/x-pack/plugins/watcher/plugin_definition.js +++ b/x-pack/plugins/watcher/plugin_definition.js @@ -22,7 +22,6 @@ export const pluginDefinition = { require: ['kibana', 'elasticsearch', 'xpack_main'], uiExports: { managementSections: [ - 'plugins/watcher/sections/testbed', 'plugins/watcher/sections/watch_detail', 'plugins/watcher/sections/watch_edit', 'plugins/watcher/sections/watch_list', diff --git a/x-pack/plugins/watcher/public/sections/testbed/components/testbed/index.js b/x-pack/plugins/watcher/public/sections/testbed/components/testbed/index.js deleted file mode 100644 index 3c6c3b06a0b26..0000000000000 --- a/x-pack/plugins/watcher/public/sections/testbed/components/testbed/index.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ - -import './testbed'; diff --git a/x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.html b/x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.html deleted file mode 100644 index be0dcccddc9b3..0000000000000 --- a/x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.html +++ /dev/null @@ -1,10 +0,0 @@ -
-
- - - - - - -
-
diff --git a/x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.js b/x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.js deleted file mode 100644 index f35bdd748c7eb..0000000000000 --- a/x-pack/plugins/watcher/public/sections/testbed/components/testbed/testbed.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ - -import { uiModules } from 'ui/modules'; -import template from './testbed.html'; - -const app = uiModules.get('xpack/watcher'); - -app.directive('testbed', function () { - - return { - restrict: 'E', - template: template, - scope: { - }, - bindToController: true, - controllerAs: 'testbed', - controller: class TestbedController { - constructor() { - } - } - }; -}); diff --git a/x-pack/plugins/watcher/public/sections/testbed/index.js b/x-pack/plugins/watcher/public/sections/testbed/index.js deleted file mode 100644 index 053196dcad619..0000000000000 --- a/x-pack/plugins/watcher/public/sections/testbed/index.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ - -import './register_management_section'; -import './testbed_route'; diff --git a/x-pack/plugins/watcher/public/sections/testbed/register_management_section.js b/x-pack/plugins/watcher/public/sections/testbed/register_management_section.js deleted file mode 100644 index fd0f0fc287195..0000000000000 --- a/x-pack/plugins/watcher/public/sections/testbed/register_management_section.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ - -// import { management } from 'ui/management'; - -// management.getSection('elasticsearch').register('testbed', { -// display: 'Test Bed', -// order: 5, -// url: '#/management/elasticsearch/watches/testbed/' -// }); diff --git a/x-pack/plugins/watcher/public/sections/testbed/testbed_route.html b/x-pack/plugins/watcher/public/sections/testbed/testbed_route.html deleted file mode 100644 index cb758ea3cb6da..0000000000000 --- a/x-pack/plugins/watcher/public/sections/testbed/testbed_route.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/x-pack/plugins/watcher/public/sections/testbed/testbed_route.js b/x-pack/plugins/watcher/public/sections/testbed/testbed_route.js deleted file mode 100644 index 8826228615948..0000000000000 --- a/x-pack/plugins/watcher/public/sections/testbed/testbed_route.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ - -import routes from 'ui/routes'; -import template from './testbed_route.html'; -import './components/testbed'; - -routes - .when('/management/elasticsearch/watches/testbed/:data?', { - template: template, - resolve: { - data: function ($route) { - return $route.current.params.data; - } - }, - controllerAs: 'testbedRoute', - controller: class TestbedRouteController { - constructor($injector) { - const $route = $injector.get('$route'); - this.data = $route.current.locals.data; - } - } - });