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

Implement getFieldMapping on SDKRestClient #672

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Apr 12, 2023

Description

Implements the IndicesClient getFieldMapping() method on the SDKRestClient.

This provides identical functionality to the Transport Call on AD extension (GetFieldMappingsAction.INSTANCE) used for validating the time field, enabling its migration without exposing OpenSearch TransportActions to extensions.

Issues Resolved

Fixes #361

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.

@codecov-commenter
Copy link

codecov-commenter commented Apr 12, 2023

Codecov Report

Merging #672 (c0bc182) into main (0506955) will increase coverage by 0.03%.
The diff coverage is 100.00%.

📣 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              @@
##               main     #672      +/-   ##
============================================
+ Coverage     63.86%   63.90%   +0.03%     
  Complexity      274      274              
============================================
  Files            55       55              
  Lines          1168     1169       +1     
  Branches         38       38              
============================================
+ Hits            746      747       +1     
  Misses          409      409              
  Partials         13       13              
Impacted Files Coverage Δ
src/main/java/org/opensearch/sdk/SDKClient.java 89.09% <100.00%> (+0.10%) ⬆️

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

owaiskazi19
owaiskazi19 previously approved these changes Apr 12, 2023
PLUGIN_MIGRATION.md Outdated Show resolved Hide resolved
joshpalis
joshpalis previously approved these changes Apr 12, 2023
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
Member

I was about to comment that DEFAULT should be replaced by options since #613 got merged but you were fast! Haha

@dbwiddis dbwiddis merged commit 51c321c into opensearch-project:main Apr 13, 2023
@dbwiddis dbwiddis deleted the fieldMappings branch April 13, 2023 21:50
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 13, 2023
* Implement getFieldMapping on SDKRestClient

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* More migration notes

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update to match variable options parameter.

Signed-off-by: Daniel Widdis <widdis@gmail.com>

---------

Signed-off-by: Daniel Widdis <widdis@gmail.com>
(cherry picked from commit 51c321c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Apr 13, 2023
* Implement getFieldMapping on SDKRestClient



* More migration notes



* Update to match variable options parameter.



---------


(cherry picked from commit 51c321c)

Signed-off-by: Daniel Widdis <widdis@gmail.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Implement AD TransportGetFieldMappingsAction
4 participants