Skip to content

Commit

Permalink
[ML] Remove blank job definition as it is unused and out-of-sync with…
Browse files Browse the repository at this point in the history
… Elasticsearch (#102506)

This a companion to elastic/elasticsearch#74188.

This PR is functionally a no-op, as the removed method
was not called anywhere. But it is sensible to remove
it to prevent it being called in the future now that it
references fields that don't exist in Elasticsearch.
  • Loading branch information
droberts195 authored and kibanamachine committed Jun 18, 2021
1 parent d9f209c commit a377774
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions x-pack/plugins/ml/public/application/services/job_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,26 +91,6 @@ class JobService {
};
}

getBlankJob() {
return {
job_id: '',
description: '',
groups: [],
analysis_config: {
bucket_span: '15m',
influencers: [],
detectors: [],
},
data_description: {
time_field: '',
time_format: '', // 'epoch',
field_delimiter: '',
quote_character: '"',
format: 'delimited',
},
};
}

loadJobs() {
return new Promise((resolve, reject) => {
jobs = [];
Expand Down

0 comments on commit a377774

Please sign in to comment.