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] Requests to use MediaType instead of XContentType (#6218) #6433

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

nknize
Copy link
Collaborator

@nknize nknize commented Feb 22, 2023

Backport 1f4cdd2 from #6218.

…rch-project#6218)

Refactors various REST requests to use MediaType instead of XContentType to
abstract media format from the REST interfaces.

Signed-off-by: Nicholas Walter Knize <[email protected]>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #6433 (ad09bbe) into 2.x (47a3aba) will decrease coverage by 0.04%.
The diff coverage is 50.94%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x    #6433      +/-   ##
============================================
- Coverage     70.40%   70.37%   -0.04%     
- Complexity    59222    59253      +31     
============================================
  Files          4798     4798              
  Lines        284215   284302      +87     
  Branches      41317    41321       +4     
============================================
- Hits         200100   200068      -32     
- Misses        67417    67446      +29     
- Partials      16698    16788      +90     
Impacted Files Coverage Δ
.../java/org/opensearch/common/xcontent/XContent.java 100.00% <ø> (ø)
...rg/opensearch/common/xcontent/XContentFactory.java 64.15% <ø> (ø)
.../opensearch/common/xcontent/XContentGenerator.java 73.33% <ø> (+6.66%) ⬆️
...a/org/opensearch/common/xcontent/XContentType.java 100.00% <ø> (ø)
.../opensearch/common/xcontent/cbor/CborXContent.java 80.00% <ø> (ø)
.../opensearch/common/xcontent/json/JsonXContent.java 100.00% <ø> (ø)
...pensearch/common/xcontent/smile/SmileXContent.java 87.50% <ø> (ø)
.../opensearch/common/xcontent/yaml/YamlXContent.java 84.61% <ø> (ø)
...ction/admin/indices/create/CreateIndexRequest.java 64.51% <0.00%> (-8.92%) ⬇️
...g/opensearch/action/ingest/PutPipelineRequest.java 67.74% <0.00%> (-19.76%) ⬇️
... and 507 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Rishikesh1159 added a commit to Rishikesh1159/OpenSearch that referenced this pull request Mar 19, 2023
Rishikesh1159 added a commit to Rishikesh1159/OpenSearch that referenced this pull request Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants