Skip to content

Commit

Permalink
[ML] Remove timing_stats and forecast_stats from cloneJob
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed May 7, 2020
1 parent d828877 commit 9e97dd9
Showing 1 changed file with 3 additions and 2 deletions.
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 { each } from 'lodash';
import { each, omit } from 'lodash';
import { mlMessageBarService } from '../../../components/messagebar';
import rison from 'rison-node';

Expand Down Expand Up @@ -173,7 +173,8 @@ function showResults(resp, action) {

export async function cloneJob(jobId) {
try {
const job = await loadFullJob(jobId);
let job = await loadFullJob(jobId);
job = omit(job, ['timing_stats', 'forecasts_stats']);
if (job.custom_settings && job.custom_settings.created_by) {
// if the job is from a wizards, i.e. contains a created_by property
// use tempJobCloningObjects to temporarily store the job
Expand Down

0 comments on commit 9e97dd9

Please sign in to comment.