-
Notifications
You must be signed in to change notification settings - Fork 73
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] Migrate Create, Update, and Validate actions to extension #792
[Feature/extensions] Migrate Create, Update, and Validate actions to extension #792
Conversation
8addf5a
to
9f0f96e
Compare
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]>
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]>
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]>
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]>
just a small suggestion: is it possible to break this huge PR into small PRs for quic review? |
Unfortunately not without having a breaking change. However, there really aren't as many changes as you might think. SDK #372 committed a migration guide which pretty much summarizes the diff here. I'll be a bit more specific if it helps. From top down on files:
|
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 @@
## feature/extensions #792 +/- ##
========================================================
- Coverage 53.23% 51.02% -2.22%
+ Complexity 2661 2576 -85
========================================================
Files 291 291
Lines 16099 16110 +11
Branches 1689 1685 -4
========================================================
- Hits 8571 8220 -351
- Misses 6911 7307 +396
+ Partials 617 583 -34
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.
Looks good overall with few changes and questions! Thanks for working on this @dbwiddis!
src/main/java/org/opensearch/ad/rest/RestIndexAnomalyDetectorAction.java
Show resolved
Hide resolved
src/main/java/org/opensearch/ad/rest/RestIndexAnomalyDetectorAction.java
Show resolved
Hide resolved
request, | ||
RestStatus.OK, | ||
new ValidateAnomalyDetectorResponse(issue).toXContent(JsonXContent.contentBuilder()) | ||
); |
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.
Can we move line 164-168 under sendAnomalyDetectorValidationParseResponse
method?
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.
Uh, lines 164-168 are the replacement for sendAnomalyDetectorValidationParseResponse
which should probably be deleted.
Unless by "under" you mean, change this to return sendAnomalyDetectorValidationParseResponse(issue)
and move the 3 lines into that method? Sure.
src/main/java/org/opensearch/ad/rest/handler/AbstractAnomalyDetectorActionHandler.java
Show resolved
Hide resolved
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.
Trying to understand why these many files are in jacoco exclusions?
We've commented out a lot of the unit tests until the functionality is migrated. Goal is to re-enable them when migration is closer to complete (and we've uncommented/modified the tests) |
Description
Migrates the
IndexAnomalyDetectorTransportAction
,ValidateAnomalyDetectorTransportAction
, their Rest Handlers, and other supporting classes from plugin to extension.Testing requires adding a document to an index which requires working around #5999 locally.
See SDK #372 for a summary of the changes that you'll see in the diff.
Issues Resolved
Fixes SDK #353.
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.