[Feature/extensions] Removed Job Scheduler dependencies from AD#647
Conversation
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
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 is this ready for review? |
Still working on the build errors. |
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Codecov Report
@@ Coverage Diff @@
## feature/extensions #647 +/- ##
=====================================================
Coverage ? 53.80%
Complexity ? 2679
=====================================================
Files ? 288
Lines ? 16004
Branches ? 1703
=====================================================
Hits ? 8611
Misses ? 6768
Partials ? 625
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
@saratvemulapalli @dbwiddis this PR is ready for review. Please help reviewing this to unblock other dependent workitems. Thanks |
saratvemulapalli
left a comment
There was a problem hiding this comment.
Overall the changes look good to me.
Just put in tags for the commented piece of code, it will help when we get back to AD main merging to feature/extensions
| @@ -212,93 +212,93 @@ test { | |||
|
|
|||
| // Commented this code until Job Scheduler is published to https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/ with OpenSearch 3.0.0-SNAPSHOT | |||
|
|
|||
There was a problem hiding this comment.
Could you add a tag for every piece of commented code which should help understand why we have removed it?
There was a problem hiding this comment.
Same comment for rest of the code changes.
| description 'OpenSearch anomaly detector plugin' | ||
| classname 'org.opensearch.ad.AnomalyDetectorPlugin' | ||
| extendedPlugins = ['lang-painless', 'opensearch-job-scheduler'] | ||
| extendedPlugins = ['lang-painless'] |
| // XContentParserUtils.ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.nextToken(), parser); | ||
| // return AnomalyDetectorJob.parse(parser); | ||
| // }; | ||
| // } |
There was a problem hiding this comment.
FYI, mentioning this once but applies for most of the files. Using /*- at the start of a block comment preserves the formatting of everything until */ and reduces the diff noise. Not sure whether that makes it easier or harder to review, but something to consider in the future when commenting out large blocks.
| } | ||
|
|
||
| } | ||
| /// * |
There was a problem hiding this comment.
This looks like we commented out the entire file (including the copyright header). Some q's:
- Will that break license header checks?
- Pretty sure we should keep at least the package definition and class name. Surprised this compiles otherwise.
- If this is totally unneeded, is it ever actually called by anything? Why not delete it or give it a name like "UnusedIndexAnomaly...."
There was a problem hiding this comment.
- No, the build passed
- ^^
- The reason I didn't delete it because we will rebase
feature/extensionswith the latest main later and these files will be needed. Even, I thought of having a different name for these files but since they import dependencies from Job Scheduler it fails during compile.
| return profileList.stream().map(profile -> profile.getName()).collect(Collectors.toSet()); | ||
| } | ||
| } | ||
| /// * |
There was a problem hiding this comment.
Same questions as before re: commenting out an entire file vs. just leaving it (possibly renaming) and not using it.
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
d4e193b to
75568f3
Compare
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Description
This PR:
Before running the
feature/extensionsbranch of AD:feature/extensionsbranch of OpenSearch with 3.0.0-SNAPSHOT should be published to mavenLocal.feature/extensionsbranchIssues Resolved
opensearch-project/opensearch-sdk-java#113
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.