Skip to content

Commit

Permalink
remove management dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Oct 8, 2023
1 parent e49f58f commit 0b56f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"server": true,
"ui": true,
"optionalPlugins": ["dataSource"],
"requiredPlugins": ["management", "data", "urlForwarding"],
"requiredPlugins": ["data", "urlForwarding"],
"requiredBundles": ["opensearchDashboardsReact", "opensearchDashboardsUtils"]
}
11 changes: 2 additions & 9 deletions src/plugins/index_pattern_management/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ import {
IndexPatternManagementServiceStart,
} from './service';

import { ManagementAppMountParams, ManagementSetup } from '../../management/public';
import { ManagementAppMountParams } from '../../management/public';
import { DEFAULT_APP_CATEGORIES } from '../../../core/public';
import { reactRouterNavigate } from '../../opensearch_dashboards_react/public';

export interface IndexPatternManagementSetupDependencies {
management: ManagementSetup;
urlForwarding: UrlForwardingSetup;
}

Expand Down Expand Up @@ -85,14 +84,8 @@ export class IndexPatternManagementPlugin

public setup(
core: CoreSetup<IndexPatternManagementStartDependencies, IndexPatternManagementStart>,
{ management, urlForwarding }: IndexPatternManagementSetupDependencies
{ urlForwarding }: IndexPatternManagementSetupDependencies
) {
const opensearchDashboardsSection = management.sections.section.opensearchDashboards;

if (!opensearchDashboardsSection) {
throw new Error('`opensearchDashboards` management section not found.');
}

const newAppPath = IPM_APP_ID;
const legacyPatternsPath = 'management/opensearch-dashboards/index_patterns';

Expand Down

0 comments on commit 0b56f24

Please sign in to comment.