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 (elastic#102506) (elastic#102620)

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.

Co-authored-by: David Roberts <dave.roberts@elastic.co>
  • Loading branch information
kibanamachine and droberts195 committed Jun 18, 2021
1 parent bb6463b commit 013e6b4
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 013e6b4

Please sign in to comment.