Skip to content

Commit

Permalink
[7.x] [Remote clusters] Migrate client-side code out of legacy (#57365)…
Browse files Browse the repository at this point in the history
… (#57747)
  • Loading branch information
alisonelizabeth authored Feb 15, 2020
1 parent eff034b commit f71a43d
Show file tree
Hide file tree
Showing 112 changed files with 361 additions and 595 deletions.
2 changes: 1 addition & 1 deletion x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"xpack.logstash": "legacy/plugins/logstash",
"xpack.main": "legacy/plugins/xpack_main",
"xpack.monitoring": "legacy/plugins/monitoring",
"xpack.remoteClusters": ["plugins/remote_clusters", "legacy/plugins/remote_clusters"],
"xpack.remoteClusters": "plugins/remote_clusters",
"xpack.reporting": ["plugins/reporting", "legacy/plugins/reporting"],
"xpack.rollupJobs": "legacy/plugins/rollup",
"xpack.searchProfiler": "plugins/searchprofiler",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions x-pack/legacy/plugins/remote_clusters/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { i18n } from '@kbn/i18n';
import { LICENSE_TYPE_BASIC, LicenseType } from '../../../common/constants';

export const PLUGIN = {
ID: 'remote_clusters',
// Remote Clusters are used in both CCS and CCR, and CCS is available for all licenses.
MINIMUM_LICENSE_REQUIRED: LICENSE_TYPE_BASIC as LicenseType,
getI18nName: (): string => {
return i18n.translate('xpack.remoteClusters.appName', {
defaultMessage: 'Remote Clusters',
});
},
};

export const API_BASE_PATH = '/api/remote_clusters';

export { deserializeCluster, serializeCluster } from './cluster_serialization';
14 changes: 3 additions & 11 deletions x-pack/legacy/plugins/remote_clusters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { Legacy } from 'kibana';
import { resolve } from 'path';
import { PLUGIN } from './common';

Expand All @@ -13,18 +12,11 @@ export function remoteClusters(kibana: any) {
id: PLUGIN.ID,
configPrefix: 'xpack.remote_clusters',
publicDir: resolve(__dirname, 'public'),
// xpack_main is required for license checking.
require: ['kibana', 'elasticsearch', 'xpack_main', 'index_management'],
require: ['kibana'],
uiExports: {
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
managementSections: ['plugins/remote_clusters'],
injectDefaultVars(server: Legacy.Server) {
const config = server.config();
return {
remoteClustersUiEnabled: config.get('xpack.remote_clusters.ui.enabled'),
};
},
},
// TODO: Remove once CCR has migrated to NP
config(Joi: any) {
return Joi.object({
// display menu item
Expand All @@ -41,6 +33,6 @@ export function remoteClusters(kibana: any) {
config.get('xpack.remote_clusters.enabled') && config.get('xpack.index_management.enabled')
);
},
init(server: any) {},
init() {},
});
}

This file was deleted.

39 changes: 0 additions & 39 deletions x-pack/legacy/plugins/remote_clusters/public/app/services/http.ts

This file was deleted.

3 changes: 0 additions & 3 deletions x-pack/legacy/plugins/remote_clusters/public/index.html

This file was deleted.

12 changes: 0 additions & 12 deletions x-pack/legacy/plugins/remote_clusters/public/index.js

This file was deleted.

Loading

0 comments on commit f71a43d

Please sign in to comment.