Skip to content

Commit

Permalink
Move ILM out of legacy (#61915)
Browse files Browse the repository at this point in the history
* Rename IndexMgmtSetup to IndexManagementPluginSetup.
* Remove unused fetch index template route and related tests.
* Remove unnecessary custom styles.
  • Loading branch information
cjcenizal authored Apr 9, 2020
1 parent 93b3463 commit 982c0da
Show file tree
Hide file tree
Showing 177 changed files with 1,264 additions and 1,828 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
/src/plugins/console/ @elastic/es-ui
/src/plugins/es_ui_shared/ @elastic/es-ui
/x-pack/legacy/plugins/cross_cluster_replication/ @elastic/es-ui
/x-pack/legacy/plugins/index_lifecycle_management/ @elastic/es-ui
/x-pack/plugins/index_lifecycle_management/ @elastic/es-ui
/x-pack/legacy/plugins/index_management/ @elastic/es-ui
/x-pack/legacy/plugins/license_management/ @elastic/es-ui
/x-pack/legacy/plugins/rollup/ @elastic/es-ui
Expand Down
2 changes: 1 addition & 1 deletion x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"xpack.graph": ["legacy/plugins/graph", "plugins/graph"],
"xpack.grokDebugger": "plugins/grokdebugger",
"xpack.idxMgmt": "plugins/index_management",
"xpack.indexLifecycleMgmt": "legacy/plugins/index_lifecycle_management",
"xpack.indexLifecycleMgmt": "plugins/index_lifecycle_management",
"xpack.infra": "plugins/infra",
"xpack.ingestManager": "plugins/ingest_manager",
"xpack.lens": "legacy/plugins/lens",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { beats } from './legacy/plugins/beats_management';
import { apm } from './legacy/plugins/apm';
import { maps } from './legacy/plugins/maps';
import { indexManagement } from './legacy/plugins/index_management';
import { indexLifecycleManagement } from './legacy/plugins/index_lifecycle_management';
import { spaces } from './legacy/plugins/spaces';
import { canvas } from './legacy/plugins/canvas';
import { infra } from './legacy/plugins/infra';
Expand Down Expand Up @@ -50,7 +49,6 @@ module.exports = function(kibana) {
maps(kibana),
canvas(kibana),
indexManagement(kibana),
indexLifecycleManagement(kibana),
infra(kibana),
taskManager(kibana),
rollup(kibana),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { i18n } from '@kbn/i18n';
import { get } from 'lodash';
import { IndexMgmtSetup } from '../../../../../plugins/index_management/public';
import { IndexManagementPluginSetup } from '../../../../../plugins/index_management/public';

const propertyPath = 'isFollowerIndex';

Expand All @@ -21,7 +21,7 @@ const followerBadgeExtension = {
filterExpression: 'isFollowerIndex:true',
};

export const extendIndexManagement = (indexManagement?: IndexMgmtSetup) => {
export const extendIndexManagement = (indexManagement?: IndexManagementPluginSetup) => {
if (indexManagement) {
indexManagement.extensionsService.addBadge(followerBadgeExtension);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
DocLinksStart,
} from 'src/core/public';

import { IndexMgmtSetup } from '../../../../../plugins/index_management/public';
import { IndexManagementPluginSetup } from '../../../../../plugins/index_management/public';

// @ts-ignore;
import { setHttpClient } from './app/services/api';
Expand All @@ -21,7 +21,7 @@ import { setNotifications } from './app/services/notifications';
import { extendIndexManagement } from './extend_index_management';

interface PluginDependencies {
indexManagement: IndexMgmtSetup;
indexManagement: IndexManagementPluginSetup;
__LEGACY: {
chrome: any;
MANAGEMENT_BREADCRUMB: ChromeBreadcrumb;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { Plugin, PluginInitializerContext, CoreSetup } from 'src/core/server';

import { IndexMgmtSetup } from '../../../../../plugins/index_management/server';
import { IndexManagementPluginSetup } from '../../../../../plugins/index_management/server';

// @ts-ignore
import { registerLicenseChecker } from './lib/register_license_checker';
Expand All @@ -15,7 +15,7 @@ import { registerRoutes } from './routes/register_routes';
import { ccrDataEnricher } from './cross_cluster_replication_data';

interface PluginDependencies {
indexManagement: IndexMgmtSetup;
indexManagement: IndexManagementPluginSetup;
__LEGACY: {
server: any;
ccrUIEnabled: boolean;
Expand Down
62 changes: 0 additions & 62 deletions x-pack/legacy/plugins/index_lifecycle_management/index.ts

This file was deleted.

54 changes: 0 additions & 54 deletions x-pack/legacy/plugins/index_lifecycle_management/plugin.ts

This file was deleted.

109 changes: 0 additions & 109 deletions x-pack/legacy/plugins/index_lifecycle_management/public/legacy.ts

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 982c0da

Please sign in to comment.