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

[Refactor] Strings utility methods to core library #379

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

heemin32
Copy link
Collaborator

@heemin32 heemin32 commented Aug 7, 2023

Description

[Refactor] Strings utility methods to core library

Issues Resolved

N/A

Check List

  • 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.

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Merging #379 (2e04baf) into main (d509bfc) will decrease coverage by 0.15%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main     #379      +/-   ##
============================================
- Coverage     88.71%   88.56%   -0.15%     
+ Complexity      754      752       -2     
============================================
  Files            92       92              
  Lines          2711     2711              
  Branches        220      220              
============================================
- Hits           2405     2401       -4     
- Misses          228      230       +2     
- Partials         78       80       +2     
Files Changed Coverage Δ
...patial/ip2geo/action/RestGetDatasourceHandler.java 100.00% <ø> (ø)
...h/geospatial/ip2geo/common/ParameterValidator.java 90.00% <ø> (ø)

... and 2 files with indirect coverage changes

@@ -12,7 +12,7 @@
import java.util.List;

import org.opensearch.client.node.NodeClient;
import org.opensearch.common.Strings;
import org.opensearch.core.common.Strings;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need Strings class, unless it's used somewhere else in our plugin we need to remove this import

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used in this class.

@heemin32 heemin32 merged commit df00d45 into opensearch-project:main Aug 7, 2023
@heemin32 heemin32 deleted the patch branch August 7, 2023 22:51
@heemin32 heemin32 added the backport 2.x Backport PR to 2.x branch label Aug 16, 2023
@opensearch-trigger-bot
Copy link

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-379-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 df00d455e393fec6c3106918903d2e27efb7bf90
# Push it to GitHub
git push --set-upstream origin backport/backport-379-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-379-to-2.x.

heemin32 added a commit to heemin32/geospatial that referenced this pull request Aug 17, 2023
heemin32 added a commit that referenced this pull request Aug 17, 2023
)

* Switch from XContentType to MediaType to fix compilation errors (#366)

Signed-off-by: Heemin Kim <[email protected]>

* Refactor XContentFactory to MediaTypeRegistry (#374)

Signed-off-by: Heemin Kim <[email protected]>

* Refactor LifecycleComponent package path (#377)

Signed-off-by: Heemin Kim <[email protected]>

* [Refactor] Strings utility methods to core library (#379)

Signed-off-by: Heemin Kim <[email protected]>

* Fixed compilation errors after refactoring in core foundation classes (#380)

Signed-off-by: Heemin Kim <[email protected]>

---------

Signed-off-by: Heemin Kim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport PR to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants