Skip to content

Commit a65cc4f

Browse files
committed
[ML] Remove timing_stats & forecasts in job_service instead of utils
1 parent 9e97dd9 commit a65cc4f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

x-pack/plugins/ml/public/application/jobs/jobs_list/components/utils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { each, omit } from 'lodash';
7+
import { each } from 'lodash';
88
import { mlMessageBarService } from '../../../components/messagebar';
99
import rison from 'rison-node';
1010

@@ -173,8 +173,7 @@ function showResults(resp, action) {
173173

174174
export async function cloneJob(jobId) {
175175
try {
176-
let job = await loadFullJob(jobId);
177-
job = omit(job, ['timing_stats', 'forecasts_stats']);
176+
const job = await loadFullJob(jobId);
178177
if (job.custom_settings && job.custom_settings.created_by) {
179178
// if the job is from a wizards, i.e. contains a created_by property
180179
// use tempJobCloningObjects to temporarily store the job

x-pack/plugins/ml/public/application/services/job_service.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ class JobService {
369369
delete tempJob.open_time;
370370
delete tempJob.established_model_memory;
371371
delete tempJob.calendars;
372+
delete tempJob.timing_stats;
373+
delete tempJob.forecasts_stats;
372374

373375
delete tempJob.analysis_config.use_per_partition_normalization;
374376

0 commit comments

Comments
 (0)