-
Notifications
You must be signed in to change notification settings - Fork 31
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
Changing resources created format #207
Changing resources created format #207
Conversation
Signed-off-by: Amit Galitzky <[email protected]>
680a7c8
to
5022e07
Compare
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. Note #215 will change the occurrences of data.get(0)
to currentNodeInputs
, whichever PR gets merged first will need to rebase for the other.
Should this PR be against the |
Tbh not sure if we wanted to merge to feature branch and then port to main and 2.x or merge to main then 2.x then feature branch? @owaiskazi19 what was your preferred route? |
If the feature's mostly standalone it can go to main and add the feature backport tag. The problem is this one edits nearly every workflow step and will create a conflict with #215. Much easier to resolve if both PRs are on the same branch and you can rebase. Otherwise we'll end up with the conflicts when we eventually try to rebase main and 2.x with the feature branch. I guess my position is:
Whatever we do, don't merge this to main and #215 to feature branch (without backport) because merge conflicts on cherry-picks are ugly |
Signed-off-by: Amit Galitzky <[email protected]>
If you don't think rebasing will be too much work on your end I don't mind making sure I backport this immediately to feature branch, I do want to get this merged soon though and not leave it hanging cause it solves some update issues and has the base line for how to change resources that can easily be copied to new steps. |
We can get this on |
@amitgalitz Don't we need to add |
} | ||
} | ||
if (workflowStepName == null || resourceId == null) { | ||
throw new IOException("A ResourceCreated object requires both a workflowStepName and resourceId."); | ||
if (workflowStepName == null || workflowStepId == null || resourceId == null) { |
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.
This should be different conditions with their own logger.error message.
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.
fixed on new PR: #231
stepMap.put(CreateIndexStep.NAME, new CreateIndexStep(clusterService, client, flowFrameworkIndicesHandler)); | ||
stepMap.put(CreateIngestPipelineStep.NAME, new CreateIngestPipelineStep(client, flowFrameworkIndicesHandler)); | ||
stepMap.put(RegisterLocalModelStep.NAME, new RegisterLocalModelStep(mlClient, flowFrameworkIndicesHandler)); | ||
stepMap.put(RegisterRemoteModelStep.NAME, new RegisterRemoteModelStep(mlClient, flowFrameworkIndicesHandler)); | ||
stepMap.put(DeployModelStep.NAME, new DeployModelStep(mlClient)); | ||
stepMap.put(CreateConnectorStep.NAME, new CreateConnectorStep(mlClient, flowFrameworkIndicesHandler)); | ||
stepMap.put(ModelGroupStep.NAME, new ModelGroupStep(mlClient)); |
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.
What about the other workflow steps? Aren't we storing the resources created for them?
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.
Didn't add it to deployModel and modelGroupStep. Model group is a miss by me, adding this now, for DeployModelStep
we have no resource being created.
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.
fixed on #231
Closing in favor of merging to the feature branch first: #231 |
Description
Added updates to resources_created section for register model, create index, create ingest pipeline and create connector steps.
Changed the format of creating a resource to:
Issues Resolved
resolves #173
resolves #136
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.