Skip to content

Commit 91f7911

Browse files
authored
Move CCR out of legacy (#62890)
* Convert common/services and server/lib to TypeScript. Update Jest tests. - Remove deserializeAutoFollowPattern behavior that returned an empty object if the pattern was undefined. * Localize mocks with the component integration tests. * Update API unit tests to use NP mocks. - Break up test files. - Use inline mocked ES response instead of fixture files. - Move remaining fixture files into client integration tests directory. * Make API route validation more strict. * Publish isUiDisabled as part of Remote Clusters contract. * Default trackUiMetric service to be a no-op. * Remove security dependency. - Fix license check so that CCR won't render if the license is invalid. - Fix server security check to be more precise by checking if ES has security disabled. * Render timestamp for autofollow errors.
1 parent aa56035 commit 91f7911

File tree

251 files changed

+3972
-3234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+3972
-3234
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ module.exports = {
9696
},
9797
},
9898
{
99-
files: ['x-pack/legacy/plugins/cross_cluster_replication/**/*.{js,ts,tsx}'],
99+
files: ['x-pack/plugins/cross_cluster_replication/**/*.{js,ts,tsx}'],
100100
rules: {
101101
'jsx-a11y/click-events-have-key-events': 'off',
102102
},

.sass-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ files:
99
- 'x-pack/legacy/plugins/canvas/**/*.s+(a|c)ss'
1010
- 'x-pack/plugins/triggers_actions_ui/**/*.s+(a|c)ss'
1111
- 'x-pack/plugins/lens/**/*.s+(a|c)ss'
12+
- 'x-pack/plugins/cross_cluster_replication/**/*.s+(a|c)ss'
1213
- 'x-pack/legacy/plugins/maps/**/*.s+(a|c)ss'
1314
- 'x-pack/plugins/maps/**/*.s+(a|c)ss'
1415
ignore:

x-pack/.i18nrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"xpack.apm": ["legacy/plugins/apm", "plugins/apm"],
99
"xpack.beatsManagement": "legacy/plugins/beats_management",
1010
"xpack.canvas": "legacy/plugins/canvas",
11-
"xpack.crossClusterReplication": "legacy/plugins/cross_cluster_replication",
11+
"xpack.crossClusterReplication": "plugins/cross_cluster_replication",
1212
"xpack.dashboardMode": "legacy/plugins/dashboard_mode",
1313
"xpack.data": "plugins/data_enhanced",
1414
"xpack.drilldowns": "plugins/drilldowns",

x-pack/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { taskManager } from './legacy/plugins/task_manager';
2121
import { rollup } from './legacy/plugins/rollup';
2222
import { siem } from './legacy/plugins/siem';
2323
import { remoteClusters } from './legacy/plugins/remote_clusters';
24-
import { crossClusterReplication } from './legacy/plugins/cross_cluster_replication';
2524
import { upgradeAssistant } from './legacy/plugins/upgrade_assistant';
2625
import { uptime } from './legacy/plugins/uptime';
2726
import { encryptedSavedObjects } from './legacy/plugins/encrypted_saved_objects';
@@ -49,7 +48,6 @@ module.exports = function(kibana) {
4948
rollup(kibana),
5049
siem(kibana),
5150
remoteClusters(kibana),
52-
crossClusterReplication(kibana),
5351
upgradeAssistant(kibana),
5452
uptime(kibana),
5553
encryptedSavedObjects(kibana),

x-pack/legacy/plugins/cross_cluster_replication/common/constants/base_path.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

x-pack/legacy/plugins/cross_cluster_replication/common/constants/index.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

x-pack/legacy/plugins/cross_cluster_replication/common/constants/settings.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

x-pack/legacy/plugins/cross_cluster_replication/common/services/__snapshots__/follower_index_serialization.test.js.snap

Lines changed: 0 additions & 128 deletions
This file was deleted.

x-pack/legacy/plugins/cross_cluster_replication/common/services/auto_follow_pattern_serialization.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)