-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Job service refactor #191724
[ML] Job service refactor #191724
Conversation
/ci |
/ci |
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I gave a variety of anomaly detection job functionality a test (creating, cloning, starting, stopping, editing; in the default and another space), and couldn't spot any regressions.
@@ -241,7 +238,7 @@ export class JobCreator { | |||
public set jobId(jobId: JobId) { | |||
this._job_config.job_id = jobId; | |||
this._datafeed_config.job_id = jobId; | |||
this._datafeed_config.datafeed_id = `datafeed-${jobId}`; | |||
this._datafeed_config.datafeed_id = createDatafeedId(jobId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've raised a separate PR to fix this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just added a question about naming tempJobCloningObjects
.
import { isPopulatedObject } from '@kbn/ml-is-populated-object'; | ||
import type { JobCreator } from '../jobs/new_job/common/job_creator/job_creator'; | ||
|
||
interface TempJobCloningObjects { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Wondering why this is plural and not singular TempJobCloningObject
? Maybe replace with TempJobCloningData
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, TempJobCloningData
is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 4a13c21
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Follow on from dependancy cache removal #189729
Moving and removing as much as possible out of the
JobService
class.JobService
saveNewJob
,openJob
,forceStartDatafeeds
etcJobCreator
classes no longer useJobService