Skip to content

Commit

Permalink
Change remote_clusters ID to remoteClusters (#59246)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored Mar 5, 2020
1 parent 755439d commit bb86bf2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/cross_cluster_replication/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function crossClusterReplication(kibana) {
id: PLUGIN.ID,
configPrefix: 'xpack.ccr',
publicDir: resolve(__dirname, 'public'),
require: ['kibana', 'elasticsearch', 'xpack_main', 'remote_clusters', 'index_management'],
require: ['kibana', 'elasticsearch', 'xpack_main', 'remoteClusters', 'index_management'],
uiExports: {
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
managementSections: ['plugins/cross_cluster_replication'],
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/remote_clusters/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

export const PLUGIN = {
ID: 'remote_clusters',
ID: 'remoteClusters',
};
1 change: 0 additions & 1 deletion x-pack/plugins/remote_clusters/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { LicenseType } from '../../licensing/common/types';
const basicLicense: LicenseType = 'basic';

export const PLUGIN = {
id: 'remote_clusters',
// Remote Clusters are used in both CCS and CCR, and CCS is available for all licenses.
minimumLicenseType: basicLicense,
getI18nName: (): string => {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/remote_clusters/kibana.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "remote_clusters",
"id": "remoteClusters",
"version": "kibana",
"configPath": [
"xpack",
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/remote_clusters/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class RemoteClustersServerPlugin implements Plugin<void, void, any, any>
registerDeleteRoute(routeDependencies);

licensing.license$.subscribe(license => {
const { state, message } = license.check(PLUGIN.id, PLUGIN.minimumLicenseType);
const { state, message } = license.check(PLUGIN.getI18nName(), PLUGIN.minimumLicenseType);
const hasRequiredLicense = state === LICENSE_CHECK_STATE.Valid;
if (hasRequiredLicense) {
this.licenseStatus = { valid: true };
Expand Down

0 comments on commit bb86bf2

Please sign in to comment.