Skip to content
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

Create a Config XContent model for Config index #679

Merged
merged 4 commits into from
May 2, 2024

Conversation

dbwiddis
Copy link
Member

Description

Creates a Java Object abstraction for the key-value maps used for the config index, separating data from code.

Issues Resolved

Resolves #675

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.

@github-actions github-actions bot added the backport 2.x backport PRs to 2.x branch label Apr 24, 2024
@dbwiddis dbwiddis force-pushed the config branch 2 times, most recently from 14372a4 to 4db3fa4 Compare April 24, 2024 18:56
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 95.91837% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 73.44%. Comparing base (3e24e22) to head (f683436).

Files Patch % Lines
.../opensearch/flowframework/util/EncryptorUtils.java 90.90% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #679      +/-   ##
============================================
+ Coverage     72.56%   73.44%   +0.87%     
- Complexity      697      710      +13     
============================================
  Files            82       83       +1     
  Lines          3605     3645      +40     
  Branches        309      312       +3     
============================================
+ Hits           2616     2677      +61     
+ Misses          845      823      -22     
- Partials        144      145       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@owaiskazi19 owaiskazi19 left a 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 a minor comment

@dbwiddis dbwiddis force-pushed the config branch 3 times, most recently from 3818ca6 to 08a29f3 Compare April 26, 2024 15:36
@dbwiddis dbwiddis merged commit 40d9efc into opensearch-project:main May 2, 2024
32 checks passed
@dbwiddis dbwiddis deleted the config branch May 2, 2024 15:03
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 2, 2024
* Create a Config XContent model for Config index

Signed-off-by: Daniel Widdis <[email protected]>

* Move XContent builder into lambda

Signed-off-by: Daniel Widdis <[email protected]>

* Improve test coverage

Signed-off-by: Daniel Widdis <[email protected]>

* Even more test coverage

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 40d9efc)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request May 2, 2024
Create a Config XContent model for Config index (#679)

* Create a Config XContent model for Config index



* Move XContent builder into lambda



* Improve test coverage



* Even more test coverage



---------


(cherry picked from commit 40d9efc)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Create a Config object corresponding to the Config Index Mapping
3 participants