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] [Refactor] Remove json-path from deps and use JsonPointer instead #3262 #3284

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

willyborankin
Copy link
Collaborator

Backport 14574dd from #3262

…ensearch-project#3262)

### Description
After RFC 6901 was introduced
and the implementation was added to Jackson,
there is no need to keep the `com.jayway.jsonpath:json-path` library in
our source code,
so we can replace current validation with Jackson's `JsonPointer` class.

Besides added missing tests for:
 - `RoleRequestContentValidator`
 - `AuditRequestContentValidator`

### Issues Resolved
opensearch-project#3245

### Check List
- [ ] New functionality includes testing
- [ ] New functionality has been documented
- [ ] 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: Andrey Pleskach <ples@aiven.io>
(cherry picked from commit 14574dd)
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #3284 (8372287) into 2.x (1d6b5bf) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #3284      +/-   ##
============================================
+ Coverage     63.08%   63.14%   +0.05%     
- Complexity     3345     3346       +1     
============================================
  Files           256      256              
  Lines         19430    19432       +2     
  Branches       3279     3277       -2     
============================================
+ Hits          12258    12270      +12     
+ Misses         5575     5569       -6     
+ Partials       1597     1593       -4     
Files Changed Coverage Δ
...nsearch/security/dlic/rest/api/AuditApiAction.java 91.17% <100.00%> (ø)
...nsearch/security/dlic/rest/api/RolesApiAction.java 95.83% <100.00%> (+15.39%) ⬆️

... and 3 files with indirect coverage changes

@cwperks cwperks merged commit 4c9e6eb into opensearch-project:2.x Sep 1, 2023
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