-
Notifications
You must be signed in to change notification settings - Fork 281
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
Fix the import org.opensearch.core.common.Strings;
and import org.opensearch.core.common.logging.LoggerMessageFormat;
#2781
Conversation
Signed-off-by: Ryan Liang <[email protected]>
@@ -463,15 +463,15 @@ public String getDocId() { | |||
@Override | |||
public String toString() { | |||
try { | |||
return Strings.toString(JsonXContent.contentBuilder().map(getAsMap())); | |||
return org.opensearch.common.Strings.toString(JsonXContent.contentBuilder().map(getAsMap())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: this line and L474 are temporarily changed into this since the original toString()
function is undefined in org.opensearch.core.common.Strings
. I will create an issue to track that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue I created: #2782
Codecov Report
@@ Coverage Diff @@
## main #2781 +/- ##
============================================
- Coverage 61.48% 61.47% -0.02%
+ Complexity 3402 3401 -1
============================================
Files 266 266
Lines 18865 18865
Branches 3302 3302
============================================
- Hits 11600 11597 -3
- Misses 5669 5671 +2
- Partials 1596 1597 +1
|
Plugin-install CI task will pass once |
Checking up the errors in plugin-install |
import org.opensearch.core.common.Strings;
import org.opensearch.core.common.Strings;
and import org.opensearch.core.common.logging.LoggerMessageFormat;
@opensearch-project/engineering-effectiveness can a build be triggered to produce new artifacts for |
I have triggered one with just OpenSearch common-utils. |
Hi @prudhvigodithi, thank you for the follow-up! However, the new build seems failed (https://build.ci.opensearch.org/job/distribution-build-opensearch/7870/console) :/ |
Ya, I have just noticed it failed with OpenSearch :( and did not even reach common-utils, there is already an open issue opensearch-project/OpenSearch#7590 in OpenSearch repo. |
@prudhvigodithi got it, thanks! I will keep tracking that. |
…ect#2781) Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: Maciej Mierzwa <[email protected]>
…ect#2781) Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: Maciej Mierzwa <[email protected]>
…ect#2781) Signed-off-by: Ryan Liang <[email protected]>
…ect#2781) Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: Sam <[email protected]>
The backport to
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-2781-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 33aebb96781a4988ae14fab2a5e53b17bb99ecf6
# Push it to GitHub
git push --set-upstream origin backport/backport-2781-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 |
Creating a manual backport now |
…ect#2781) Signed-off-by: Ryan Liang <[email protected]> (cherry picked from commit 33aebb9)
Manual backport created: #2953 |
… import org.opensearch.core.common.logging.LoggerMessageFormat; (#2953) * Use version of httpclient 4 from core's buildSrc/version.properties Signed-off-by: Craig Perkins <[email protected]> * Fix the `import org.opensearch.core.common.Strings;` (#2781) Signed-off-by: Ryan Liang <[email protected]> (cherry picked from commit 33aebb9) * Run spotlessApply Signed-off-by: Craig Perkins <[email protected]> * Set common-utils-version to 2.9.0.0-SNAPSHOT Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]> Co-authored-by: Ryan Liang <[email protected]>
Description
Fix the
import org.opensearch.core.common.Strings;
andimport org.opensearch.core.common.logging.LoggerMessageFormat;
to adapt the breaking change in core: opensearch-project/OpenSearch#7508Refactoring
Issues Resolved
Check List
New functionality includes testingNew functionality has been documentedBy 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.