-
Notifications
You must be signed in to change notification settings - Fork 131
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
Merge the existing parameters when updating connectors #2784
Conversation
Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Xun Zhang <[email protected]>
@@ -287,7 +287,7 @@ public void update(MLCreateConnectorInput updateContent, Function<String, String | |||
this.protocol = updateContent.getProtocol(); | |||
} | |||
if (updateContent.getParameters() != null && updateContent.getParameters().size() > 0) { | |||
this.parameters = updateContent.getParameters(); | |||
getParameters().putAll(updateContent.getParameters()); |
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.
Add UT and integ test? Seems this logic is not tested, otherwise the change of the behavior should break existing tests
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.
BTW, thanks for the fix
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.
Will do in the next PR.
* merge the existing parameters when updating connectors Signed-off-by: Xun Zhang <[email protected]> * add more details in sagemaker model for batch inference Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit e16f38a)
* merge the existing parameters when updating connectors Signed-off-by: Xun Zhang <[email protected]> * add more details in sagemaker model for batch inference Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit e16f38a)
* merge the existing parameters when updating connectors Signed-off-by: Xun Zhang <[email protected]> * add more details in sagemaker model for batch inference Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit e16f38a) Co-authored-by: Xun Zhang <[email protected]>
* merge the existing parameters when updating connectors Signed-off-by: Xun Zhang <[email protected]> * add more details in sagemaker model for batch inference Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit e16f38a) Co-authored-by: Xun Zhang <[email protected]>
Description
This PR fixes the issue reported in #2502. This is not a bug since the issue was an expected behavior based on the initial design of the Update Connector API. However, over time we think that, in the Update APIs, it's a better CX experience to merge the updated parameters with the existing ones.
Also, some details of the sagemaker model for batch inference is added in this PR.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff
.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.