Skip to content

Commit

Permalink
[8.x] [ML] Removing deprecated post data function (elastic#199344) (e…
Browse files Browse the repository at this point in the history
…lastic#199485)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ML] Removing deprecated post data function
(elastic#199344)](elastic#199344)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-08T14:28:16Z","message":"[ML]
Removing deprecated post data function (elastic#199344)\n\n`POST
_ml/anomaly_detectors/<job_id>/_data` is being removed from es,
it\r\ncan be removed from kibana too as it is
unused.\r\n\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/8.15/ml-post-data.html","sha":"9f514f641d8e41c8807781eaa407c5a9cbca4f95","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","Feature:Anomaly
Detection","release_note:skip","v9.0.0","backport:version","v8.17.0"],"title":"[ML]
Removing deprecated post data
function","number":199344,"url":"https://github.com/elastic/kibana/pull/199344","mergeCommit":{"message":"[ML]
Removing deprecated post data function (elastic#199344)\n\n`POST
_ml/anomaly_detectors/<job_id>/_data` is being removed from es,
it\r\ncan be removed from kibana too as it is
unused.\r\n\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/8.15/ml-post-data.html","sha":"9f514f641d8e41c8807781eaa407c5a9cbca4f95"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199344","number":199344,"mergeCommit":{"message":"[ML]
Removing deprecated post data function (elastic#199344)\n\n`POST
_ml/anomaly_detectors/<job_id>/_data` is being removed from es,
it\r\ncan be removed from kibana too as it is
unused.\r\n\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/8.15/ml-post-data.html","sha":"9f514f641d8e41c8807781eaa407c5a9cbca4f95"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: James Gowdy <[email protected]>
  • Loading branch information
kibanamachine and jgowdyelastic authored Nov 8, 2024
1 parent 60e6c72 commit 4055902
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions x-pack/plugins/ml/server/lib/ml_client/ml_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,6 @@ export function getMlClient(
p
);
},
async postData(...p: Parameters<MlClient['postData']>) {
await jobIdsCheck('anomaly-detector', p);
return mlClient.postData(...p);
},
async previewDatafeed(...p: Parameters<MlClient['previewDatafeed']>) {
await datafeedIdsCheck(p);
return mlClient.previewDatafeed(...p);
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/ml/server/lib/ml_client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export type MlClientParams =
| Parameters<MlClient['info']>
| Parameters<MlClient['openJob']>
| Parameters<MlClient['postCalendarEvents']>
| Parameters<MlClient['postData']>
| Parameters<MlClient['previewDatafeed']>
| Parameters<MlClient['putCalendar']>
| Parameters<MlClient['putCalendarJob']>
Expand Down

0 comments on commit 4055902

Please sign in to comment.