-
Notifications
You must be signed in to change notification settings - Fork 59
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
Implement Action dependency injection #466
Conversation
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #466 +/- ##
============================================
+ Coverage 62.16% 65.92% +3.76%
- Complexity 158 180 +22
============================================
Files 30 35 +5
Lines 740 807 +67
Branches 21 24 +3
============================================
+ Hits 460 532 +72
+ Misses 270 264 -6
- Partials 10 11 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
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 thanks Dan
* ActionModule with getActions method Signed-off-by: Daniel Widdis <[email protected]> * Implement getActionFilters extension point Signed-off-by: Daniel Widdis <[email protected]> * Inject getActions and populate TransportActions Signed-off-by: Daniel Widdis <[email protected]> * Add Sample Actions and fix broken tests Signed-off-by: Daniel Widdis <[email protected]> * Add tests Signed-off-by: Daniel Widdis <[email protected]> * Undo whitespace changes to minimize diff Signed-off-by: Daniel Widdis <[email protected]> * Refactor TransportActions initialization Signed-off-by: Daniel Widdis <[email protected]> * Add test coverage for unregistered action Signed-off-by: Daniel Widdis <[email protected]> * Update migration guide Signed-off-by: Daniel Widdis <[email protected]> --------- Signed-off-by: Daniel Widdis <[email protected]> (cherry picked from commit 7883fba) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.
Overall LGTM! I have a small question on the design though. The way we are registering RestHandlers of SDK(extension) in OpenSearch to let OS know about the new rest handlers. In case I missed, we aren't doing the same for actions. WDYT?
* ActionModule with getActions method * Implement getActionFilters extension point * Inject getActions and populate TransportActions * Add Sample Actions and fix broken tests * Add tests * Undo whitespace changes to minimize diff * Refactor TransportActions initialization * Add test coverage for unregistered action * Update migration guide --------- (cherry picked from commit 7883fba) Signed-off-by: Daniel Widdis <[email protected]> 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>
Reviewed the PR. Great Job Dan @dbwiddis . |
* ActionModule with getActions method Signed-off-by: Daniel Widdis <[email protected]> * Implement getActionFilters extension point Signed-off-by: Daniel Widdis <[email protected]> * Inject getActions and populate TransportActions Signed-off-by: Daniel Widdis <[email protected]> * Add Sample Actions and fix broken tests Signed-off-by: Daniel Widdis <[email protected]> * Add tests Signed-off-by: Daniel Widdis <[email protected]> * Undo whitespace changes to minimize diff Signed-off-by: Daniel Widdis <[email protected]> * Refactor TransportActions initialization Signed-off-by: Daniel Widdis <[email protected]> * Add test coverage for unregistered action Signed-off-by: Daniel Widdis <[email protected]> * Update migration guide Signed-off-by: Daniel Widdis <[email protected]> --------- Signed-off-by: Daniel Widdis <[email protected]>
Description
Fully implements
getActions()
extension pointclient.execute(action, request, listener)
syntax via SDKClientTransportActions
object on the extensions runner using the expected map typesIssues Resolved
Fixes #368
Fixes #283
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.