Skip to content

Commit

Permalink
[ML] Transforms: Migrate client plugin to NP. (#59443)
Browse files Browse the repository at this point in the history
Migrates the client side plugin of transforms to NP.
- Gets rid of the last parts of the shim (http, documentation links)
- Moves the plugin from x-pack/legacy/plugins/transform/public to x-pack/plugins/transform
- Creates a custom mock for appDependencies based on NP services
- Fixes jest tests to get rid of all act() related warnings
  • Loading branch information
walterra committed Mar 6, 2020
1 parent 56a7c58 commit acc1a74
Show file tree
Hide file tree
Showing 217 changed files with 456 additions and 650 deletions.
2 changes: 1 addition & 1 deletion x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"xpack.snapshotRestore": "plugins/snapshot_restore",
"xpack.spaces": ["legacy/plugins/spaces", "plugins/spaces"],
"xpack.taskManager": "legacy/plugins/task_manager",
"xpack.transform": ["legacy/plugins/transform", "plugins/transform"],
"xpack.transform": "plugins/transform",
"xpack.triggersActionsUI": "plugins/triggers_actions_ui",
"xpack.upgradeAssistant": "plugins/upgrade_assistant",
"xpack.uptime": "legacy/plugins/uptime",
Expand Down
12 changes: 1 addition & 11 deletions x-pack/legacy/plugins/transform/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { resolve } from 'path';

import { PLUGIN } from './common/constants';

export function transform(kibana: any) {
return new kibana.Plugin({
id: PLUGIN.ID,
id: 'transform',
configPrefix: 'xpack.transform',
publicDir: resolve(__dirname, 'public'),
require: ['kibana', 'elasticsearch', 'xpack_main'],
uiExports: {
styleSheetPaths: resolve(__dirname, 'public/app/index.scss'),
managementSections: ['plugins/transform'],
},
});
}
102 changes: 0 additions & 102 deletions x-pack/legacy/plugins/transform/public/app/hooks/use_api.ts

This file was deleted.

25 changes: 0 additions & 25 deletions x-pack/legacy/plugins/transform/public/app/hooks/use_api_types.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

80 changes: 0 additions & 80 deletions x-pack/legacy/plugins/transform/public/plugin.ts

This file was deleted.

Loading

0 comments on commit acc1a74

Please sign in to comment.