Skip to content

Commit

Permalink
[ML] Client side cut over (#60100)
Browse files Browse the repository at this point in the history
* [ML] Client side cut over

* updating paths and commented code

* changes based on review

* disabling telemetry tests

* fixing start job stylesheets

* fixing everything that is broken

* fixing types and ml icon order

* using icon constant
  • Loading branch information
jgowdyelastic authored Mar 13, 2020
1 parent 54f55f6 commit 35302ed
Show file tree
Hide file tree
Showing 1,286 changed files with 583 additions and 723 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module.exports = {
},
},
{
files: ['x-pack/legacy/plugins/ml/**/*.{js,ts,tsx}'],
files: ['x-pack/plugins/ml/**/*.{js,ts,tsx}'],
rules: {
'react-hooks/exhaustive-deps': 'off',
},
Expand Down
2 changes: 0 additions & 2 deletions x-pack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { graph } from './legacy/plugins/graph';
import { monitoring } from './legacy/plugins/monitoring';
import { reporting } from './legacy/plugins/reporting';
import { security } from './legacy/plugins/security';
import { ml } from './legacy/plugins/ml';
import { tilemap } from './legacy/plugins/tilemap';
import { grokdebugger } from './legacy/plugins/grokdebugger';
import { dashboardMode } from './legacy/plugins/dashboard_mode';
Expand Down Expand Up @@ -45,7 +44,6 @@ module.exports = function(kibana) {
reporting(kibana),
spaces(kibana),
security(kibana),
ml(kibana),
tilemap(kibana),
grokdebugger(kibana),
dashboardMode(kibana),
Expand Down
57 changes: 0 additions & 57 deletions x-pack/legacy/plugins/ml/index.ts

This file was deleted.

19 changes: 0 additions & 19 deletions x-pack/legacy/plugins/ml/jsconfig.json

This file was deleted.

This file was deleted.

This file was deleted.

84 changes: 0 additions & 84 deletions x-pack/legacy/plugins/ml/public/application/management/index.ts

This file was deleted.

29 changes: 0 additions & 29 deletions x-pack/legacy/plugins/ml/public/legacy.ts

This file was deleted.

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

This file was deleted.

28 changes: 0 additions & 28 deletions x-pack/legacy/plugins/ml/public/register_feature.ts

This file was deleted.

3 changes: 0 additions & 3 deletions x-pack/legacy/plugins/ml/tsconfig.json

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*/

export const PLUGIN_ID = 'ml';
export const PLUGIN_ICON = 'machineLearningApp';
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { Observable, Subscription } from 'rxjs';
import { ILicense, LICENSE_CHECK_STATE } from '../../../../../plugins/licensing/common/types';
import { ILicense, LICENSE_CHECK_STATE } from '../../../licensing/common/types';
import { PLUGIN_ID } from '../constants/app';

export const MINIMUM_LICENSE = 'basic';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { ES_FIELD_TYPES } from '../../../../../../src/plugins/data/common';
import { ES_FIELD_TYPES } from '../../../../../src/plugins/data/common';
import {
ML_JOB_AGGREGATION,
KIBANA_AGGREGATION,
ES_AGGREGATION,
} from '../../common/constants/aggregation_types';
import { MLCATEGORY } from '../../common/constants/field_types';
} from '../constants/aggregation_types';
import { MLCATEGORY } from '../constants/field_types';

export const EVENT_RATE_FIELD_ID = '__ml_event_rate_count__';
export const METRIC_AGG_TYPE = 'metrics';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { SavedObjectAttributes } from 'kibana/public';
import { Datafeed, Job } from '../types/anomaly_detection_jobs';
import { Datafeed, Job } from './anomaly_detection_jobs';

export interface ModuleJob {
id: string;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import numeral from '@elastic/numeral';
import { ALLOWED_DATA_UNITS, JOB_ID_MAX_LENGTH } from '../constants/validation';
import { parseInterval } from './parse_interval';
import { maxLengthValidator } from './validators';
import { CREATED_BY_LABEL } from '../../common/constants/new_job';
import { CREATED_BY_LABEL } from '../constants/new_job';

// work out the default frequency based on the bucket_span in seconds
export function calculateDatafeedFrequencyDefaultSeconds(bucketSpanSeconds) {
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions x-pack/plugins/ml/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"baseUrl": "../../../.",
"paths": {
"ui/*": ["src/legacy/ui/public/*"],
"plugins/ml/*": ["x-pack/plugins/ml/public/*"]
}
},
"exclude": ["node_modules", "build"]
}
24 changes: 19 additions & 5 deletions x-pack/plugins/ml/kibana.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
{
"id": "ml",
"version": "0.0.1",
"version": "8.0.0",
"kibanaVersion": "kibana",
"configPath": ["ml"],
"requiredPlugins": ["cloud", "features", "home", "licensing", "usageCollection"],
"optionalPlugins": ["security", "spaces"],
"configPath": [
"xpack",
"ml"
],
"requiredPlugins": [
"data",
"cloud",
"features",
"home",
"licensing",
"usageCollection"
],
"optionalPlugins": [
"security",
"spaces",
"management"
],
"server": true,
"ui": false
"ui": true
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// Protect the rest of Kibana from ML generic namespacing
// SASSTODO: Prefix ml selectors instead
#ml-app {
.ml-app {
// App level
@import 'app';

Expand Down
Loading

0 comments on commit 35302ed

Please sign in to comment.