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

[Backport 2.x] [Maintenance-2930] Review use of JSON Flattener #3782

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 87de7e2 from #3674.

### Description

Implement JsonFlattener helper class as written in #2926 to deprecate
the use of the unnecessary JsonFlattener third party module.

* Category (Enhancement, New feature, Bug fix, Test fix, Refactoring,
Maintenance, Documentation)

Maintenance

* Why these changes are required?

The JsonFlattener module was being utilized in only one place for one
specific purpose, so these functions can be implemented as part of the
OpenSearch codebase instead of importing an unnecessary third party
module.

* What is the old behavior before changes and new behavior after
changes?

Hopefully nothing.

### Issues Resolved
- #2930

Is this a backport? If so, please add backport PR # and/or commits #

No

### Testing
Tests checked to make sure functions are not broken.

### Check List
- [x] New functionality includes testing
- [x] New functionality has been documented
- [x] Commits are signed per the DCO using --signoff

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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Prabhas Kurapati <prabhask@berkeley.edu>
(cherry picked from commit 87de7e2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Merging #3782 (4263ae1) into 2.x (9110114) will increase coverage by 0.01%.
Report is 6 commits behind head on 2.x.
The diff coverage is 88.88%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #3782      +/-   ##
============================================
+ Coverage     64.90%   64.91%   +0.01%     
- Complexity     3638     3642       +4     
============================================
  Files           285      286       +1     
  Lines         20535    20561      +26     
  Branches       3386     3389       +3     
============================================
+ Hits          13329    13348      +19     
- Misses         5528     5535       +7     
  Partials       1678     1678              
Files Coverage Δ
...nsearch/security/compliance/FieldReadCallback.java 55.55% <100.00%> (ø)
...org/opensearch/security/support/JsonFlattener.java 88.46% <88.46%> (ø)

... and 6 files with indirect coverage changes

@cwperks cwperks merged commit 47c977b into 2.x Dec 6, 2023
@cwperks cwperks deleted the backport/backport-3674-to-2.x branch December 6, 2023 19:04
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.

2 participants