-
Notifications
You must be signed in to change notification settings - Fork 36
Adding RestActions support Create/Update Detector API #243
Conversation
Codecov Report
@@ Coverage Diff @@
## master #243 +/- ##
============================================
+ Coverage 71.60% 71.68% +0.08%
- Complexity 1352 1367 +15
============================================
Files 153 157 +4
Lines 6406 6513 +107
Branches 490 493 +3
============================================
+ Hits 4587 4669 +82
- Misses 1587 1609 +22
- Partials 232 235 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -254,7 +254,8 @@ List<String> jacocoExclusions = [ | |||
'com.amazon.opendistroforelasticsearch.ad.transport.StatsAnomalyDetectorTransportAction', | |||
'com.amazon.opendistroforelasticsearch.ad.transport.DeleteAnomalyDetectorTransportAction*', | |||
'com.amazon.opendistroforelasticsearch.ad.transport.GetAnomalyDetectorTransportAction*', | |||
'com.amazon.opendistroforelasticsearch.ad.transport.GetAnomalyDetectorResponse' | |||
'com.amazon.opendistroforelasticsearch.ad.transport.GetAnomalyDetectorResponse', | |||
'com.amazon.opendistroforelasticsearch.ad.transport.IndexAnomalyDetectorRequest' |
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.
Added IndexAnomalyDetectorRequest using Powermock but JaCoCo doesnt read lines covered by Powermock tests.
...java/com/amazon/opendistroforelasticsearch/ad/rest/handler/AnomalyDetectorActionHandler.java
Show resolved
Hide resolved
@@ -132,11 +141,15 @@ public IndexAnomalyDetectorActionHandler( | |||
*/ | |||
public void start() throws IOException { | |||
if (!anomalyDetectionIndices.doesAnomalyDetectorIndexExist()) { | |||
System.out.println("AnomalyDetector Indices do not exist"); |
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.
Remove System.out.println, check other places too
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.
Sure.. there are other debugging logs as well. Will remove them.
...com/amazon/opendistroforelasticsearch/ad/rest/handler/IndexAnomalyDetectorActionHandler.java
Outdated
Show resolved
Hide resolved
Could you rebase with master to only have the changes related to create/update detector? |
...va/com/amazon/opendistroforelasticsearch/ad/transport/GetAnomalyDetectorTransportAction.java
Outdated
Show resolved
Hide resolved
Sure, just rebased and merged master changes into this PR. |
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!
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 for the change!
*Issue #195 *
Description of changes:
Adding RestActions support Create/Update Detector API which is needed to support AD FGAC
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.