-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Feature/extensions] Migrates Get Detector action to extension #810
[Feature/extensions] Migrates Get Detector action to extension #810
Conversation
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[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.
Doing an initial pass
src/main/java/org/opensearch/ad/transport/GetAnomalyDetectorTransportAction.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/ad/transport/GetAnomalyDetectorTransportAction.java
Show resolved
Hide resolved
Signed-off-by: Owais Kazi <[email protected]>
* Reformatting the imports Signed-off-by: Varun Jain <[email protected]> * Reformatting imports and rebasing with SDK Signed-off-by: Varun Jain <[email protected]> * Reformatting imports and rebasing with SDK Signed-off-by: Varun Jain <[email protected]> --------- Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
cb707d2
to
a64f199
Compare
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 @@
## feature/extensions #810 +/- ##
========================================================
- Coverage 53.33% 49.17% -4.16%
+ Complexity 2658 2631 -27
========================================================
Files 291 297 +6
Lines 16061 17113 +1052
Branches 1686 1843 +157
========================================================
- Hits 8566 8416 -150
- Misses 6877 8088 +1211
+ Partials 618 609 -9
Flags with carried forward coverage won't be shown. Click here to find out 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.
LGTM but for ease of review would really like separate commits when uncommenting the entire file and then making changes to it. I had to do the diff manually.
Description
Migrates the GetAnomalyDetectorTransportAction, their Rest Handlers, and other supporting classes from plugin to extension.
This PR also brings back the original index name for
ANOMALY_DETECTORS_INDEX
fromopendistro-anomaly-detectors
->.opendistro-anomaly-detectors
Removed unused files:
RestGetDetectorAction
,RestCreateDetectorAction
andRestValidateDetectorAction
Issues Resolved
Fixes opensearch-project/opensearch-sdk-java#373
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.