Skip to content

Commit

Permalink
temp: save
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Jun 11, 2024
1 parent 1edbb40 commit 6681e0e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
AppMountParameters,
CoreSetup,
CoreStart,
DEFAULT_APP_CATEGORIES,
Plugin,
PluginInitializerContext,
DEFAULT_GROUPS,
} from "../../../src/core/public";
import { actionRepoSingleton } from "./pages/VisualCreatePolicy/utils/helpers";
import { ROUTES } from "./utils/constants";
Expand All @@ -25,13 +25,6 @@ interface IndexManagementSetupDeps {
dataSourceManagement?: DataSourceManagementPluginSetup;
}

const DATA_ADMINISTRATION: AppCategory = {
id: "DATA_ADMINISTRATION",
label: "Data administration",
order: 8000,
euiIconType: "wrench",
};

const ISM_category: Record<string, AppCategory & { group?: AppCategory }> = {
indexes: {
id: "indexes",
Expand All @@ -40,7 +33,6 @@ const ISM_category: Record<string, AppCategory & { group?: AppCategory }> = {
}),
order: 9000,
euiIconType: "managementApp",
group: DATA_ADMINISTRATION,
},
backup: {
id: "backup",
Expand All @@ -49,7 +41,6 @@ const ISM_category: Record<string, AppCategory & { group?: AppCategory }> = {
}),
order: 9010,
euiIconType: "managementApp",
group: DATA_ADMINISTRATION,
},
};

Expand Down Expand Up @@ -92,6 +83,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Indexes",
order: 8040,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.INDICES);
},
Expand All @@ -102,6 +94,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Data streams",
order: 8050,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.DATA_STREAMS);
},
Expand All @@ -112,6 +105,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Index alias",
order: 8060,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.ALIASES);
},
Expand All @@ -122,6 +116,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Index state management policies",
order: 9010,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.INDEX_POLICIES);
},
Expand All @@ -132,6 +127,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Index templates",
order: 9011,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.TEMPLATES);
},
Expand All @@ -142,6 +138,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Index notification settings",
order: 9012,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.NOTIFICATIONS);
},
Expand All @@ -152,6 +149,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Rollup jobs",
order: 9013,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.ROLLUPS);
},
Expand All @@ -162,6 +160,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Transform jobs",
order: 9014,
category: ISM_category.indexes,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.TRANSFORMS);
},
Expand All @@ -172,6 +171,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Index snapshots",
order: 9020,
category: ISM_category.backup,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.SNAPSHOT_POLICIES);
},
Expand All @@ -182,6 +182,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Index snapshot policies",
order: 9030,
category: ISM_category.backup,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.SNAPSHOT_POLICIES);
},
Expand All @@ -192,6 +193,7 @@ export class IndexManagementPlugin implements Plugin<IndexManagementPluginSetup,
title: "Index snapshot repositories",
order: 9040,
category: ISM_category.backup,
group: DEFAULT_GROUPS.dataAdministration,
mount: async (params: AppMountParameters) => {
return mountWrapper(params, ROUTES.REPOSITORIES);
},
Expand Down

0 comments on commit 6681e0e

Please sign in to comment.