File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
x-pack/plugins/ml/public/application
jobs/jobs_list/components Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 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' ;
88import { mlMessageBarService } from '../../../components/messagebar' ;
99import rison from 'rison-node' ;
1010
@@ -173,8 +173,7 @@ function showResults(resp, action) {
173173
174174export 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments