Description
After #44615 has been implemented the ability to move datafeeds between jobs should be removed from the master branch. As anomaly detection jobs and datafeeds have become more closely coupled this is undesirable and adds complexity.
The update datafeed REST endpoint should be changed to report an error if it receives a request containing job_id
. If an 8.x node receives a request over wire transport that contains job_id
then it should refuse to process the request and return an error response.
Removal of the ability to move a datafeed to a different job should then open up the possibility to simplify other code. For example there will be no need for 8.x to consider deleting datafeed timing stats when moving a datafeed to a different job. There may be other places where the code can be simplified too.