Skip to content

Commit

Permalink
[Index Management] Remove old code (#168885)
Browse files Browse the repository at this point in the history
## Summary

This PR removes some leftover code from deleting the index details
flyout in #165705
  • Loading branch information
yuliacech authored Oct 18, 2023
1 parent 8252706 commit c58238d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 110 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@

export { REFRESH_RATE_INDEX_LIST } from './refresh_intervals';

export {
TAB_SUMMARY,
TAB_SETTINGS,
TAB_MAPPING,
TAB_STATS,
TAB_EDIT_SETTINGS,
} from './detail_panel_tabs';

export const REACT_ROOT_ID = 'indexManagementReactRoot';

export * from './ilm_locator';
75 changes: 0 additions & 75 deletions x-pack/plugins/index_management/public/application/lib/ace.js

This file was deleted.

14 changes: 0 additions & 14 deletions x-pack/plugins/index_management/public/application/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import {
Index,
IndexSettingsResponse,
} from '../../../common';
import { TAB_SETTINGS, TAB_MAPPING, TAB_STATS } from '../constants';
import { useRequest, sendRequest } from './use_request';
import { httpService } from './http';
import { UiMetricService } from './ui_metric';
Expand Down Expand Up @@ -245,19 +244,6 @@ export async function loadIndexMapping(indexName: string) {
return response;
}

export async function loadIndexData(type: string, indexName: string) {
switch (type) {
case TAB_MAPPING:
return loadIndexMapping(indexName);

case TAB_SETTINGS:
return loadIndexSettings(indexName);

case TAB_STATS:
return loadIndexStats(indexName);
}
}

export function useLoadIndexTemplates() {
return useRequest<{ templates: TemplateListItem[]; legacyTemplates: TemplateListItem[] }>({
path: `${API_BASE_PATH}/index_templates`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export {
updateIndexSettings,
loadIndexStats,
loadIndexMapping,
loadIndexData,
useLoadIndexTemplates,
simulateIndexTemplate,
useLoadNodesPlugins,
Expand Down

0 comments on commit c58238d

Please sign in to comment.