Skip to content
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

Added Create Connector Step #107

Merged
merged 6 commits into from
Oct 25, 2023

Conversation

owaiskazi19
Copy link
Member

@owaiskazi19 owaiskazi19 commented Oct 19, 2023

Description

  • Added Create Connector Step
  • Resolved the static MLClient initialization and finally able to get the test working for register and deploy
  • Added failure tests for Register, Deploy steps.

Issues Resolved

Fixes #70

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.

@github-actions github-actions bot added the backport 2.x backport PRs to 2.x branch label Oct 19, 2023
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
@owaiskazi19 owaiskazi19 changed the title Added initial implementation of Create Connector Added Create Connector Step Oct 19, 2023
@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Merging #107 (158ea4a) into main (f621b91) will increase coverage by 0.08%.
The diff coverage is 76.74%.

@@             Coverage Diff              @@
##               main     #107      +/-   ##
============================================
+ Coverage     80.47%   80.55%   +0.08%     
- Complexity      252      262      +10     
============================================
  Files            30       30              
  Lines           973     1039      +66     
  Branches         98      103       +5     
============================================
+ Hits            783      837      +54     
- Misses          155      164       +9     
- Partials         35       38       +3     
Files Coverage Δ
.../opensearch/flowframework/FlowFrameworkPlugin.java 100.00% <100.00%> (ø)
...g/opensearch/flowframework/common/CommonValue.java 100.00% <ø> (ø)
...ch/flowframework/workflow/WorkflowStepFactory.java 70.00% <100.00%> (+1.57%) ⬆️
...arch/flowframework/workflow/RegisterModelStep.java 78.94% <85.71%> (+5.73%) ⬆️
...search/flowframework/workflow/DeployModelStep.java 75.00% <71.42%> (+9.78%) ⬆️
...ch/flowframework/workflow/CreateConnectorStep.java 73.84% <73.84%> (ø)

Copy link
Member

@joshpalis joshpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial pass

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Copy link
Member

@joshpalis joshpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second pass, besides these comments, looks good to me

Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending the unresolved comments.

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Copy link
Member

@joshpalis joshpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes

@joshpalis joshpalis merged commit 23b2f15 into opensearch-project:main Oct 25, 2023
21 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 25, 2023
* Added initial implementation of create connector

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Added test for create connector

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Added more tests and updated MLClient initialization

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Addressed PR comments

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* CompletedFuture exceptionally if fields are not present

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
(cherry picked from commit 23b2f15)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
owaiskazi19 pushed a commit that referenced this pull request Oct 25, 2023
Added Create Connector Step (#107)

* Added initial implementation of create connector



* Added test for create connector



* Added more tests and updated MLClient initialization



* Addressed PR comments



* CompletedFuture exceptionally if fields are not present



---------


(cherry picked from commit 23b2f15)

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Create Connector for remote model
4 participants