Skip to content

[Feature/extensions] Get namedXContentRegistry from ExtensionsRunner#725

Merged
dbwiddis merged 6 commits intoopensearch-project:feature/extensionsfrom
dbwiddis:namedXContent
Nov 18, 2022
Merged

[Feature/extensions] Get namedXContentRegistry from ExtensionsRunner#725
dbwiddis merged 6 commits intoopensearch-project:feature/extensionsfrom
dbwiddis:namedXContent

Conversation

@dbwiddis
Copy link
Copy Markdown
Member

Note: Requires SDK #244 to be merged first.

Description

Simplifies AnomalyDetectorExtension:

  • Inherits from BaseExtension to simplify extension settings and remove unneeded overrides
  • Passes its NamedXContent to the ExtensionsRunner during init, to be merged with core NamedXContent
  • Obtains the merged namedXContentRegistry from the Extensions Runner and passes it to the REST handler

Issues Resolved

SDK #208

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.

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
@owaiskazi19
Copy link
Copy Markdown
Member

@dbwiddis looks like you have to rebase with feature/extensions to get the successful build?

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 18, 2022

Codecov Report

❌ Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.35%. Comparing base (11d094a) to head (19c08f1).
⚠️ Report is 63 commits behind head on feature/extensions.

Files with missing lines Patch % Lines
...g/opensearch/ad/rest/RestCreateDetectorAction.java 0.00% 7 Missing ⚠️
...va/org/opensearch/ad/AnomalyDetectorExtension.java 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                    @@
##             feature/extensions     #725      +/-   ##
========================================================
- Coverage                 53.81%   53.35%   -0.46%     
+ Complexity                 2679     2658      -21     
========================================================
  Files                       288      290       +2     
  Lines                     16004    16058      +54     
  Branches                   1703     1686      -17     
========================================================
- Hits                       8612     8568      -44     
- Misses                     6767     6872     +105     
+ Partials                    625      618       -7     
Flag Coverage Δ
plugin ∅ <0.00%> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...va/org/opensearch/ad/AnomalyDetectorExtension.java 0.00% <0.00%> (ø)
...g/opensearch/ad/rest/RestCreateDetectorAction.java 0.00% <0.00%> (ø)

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dbwiddis dbwiddis merged commit fa81e2e into opensearch-project:feature/extensions Nov 18, 2022
@dbwiddis dbwiddis deleted the namedXContent branch November 18, 2022 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants