-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Use Java 15 text blocks for JSON and multiline strings #80751
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a403cb8
to
f39bc10
Compare
pugnascotia
reviewed
Nov 16, 2021
client/rest-high-level/src/test/java/org/elasticsearch/client/BulkProcessorIT.java
Outdated
Show resolved
Hide resolved
I'm happy to go over this properly when we're in a position to merge 👍 |
9620029
to
9f0a77a
Compare
…ava/org/elasticsearch/xpack/ml/integration/PyTorchModelIT.java Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…ava/org/elasticsearch/xpack/ml/integration/RegressionIT.java Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…csearch/integration/IndexPrivilegeIntegTests.java Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…al/DiscountedCumulativeGainTests.java Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…ack/sql/qa/geo/GeoDataLoader.java Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…pack/textstructure/structurefinder/GrokPatternCreatorTests.java Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
6ad6175
to
d8f0a5f
Compare
pugnascotia
approved these changes
Dec 9, 2021
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.
LGTM 👍 thanks for taking on this work! 🚀
@elasticmachine update branch |
Thanks, Rory! |
arteam
added a commit
to arteam/elasticsearch
that referenced
this pull request
Dec 15, 2021
…#80751) The ES code base is quite JSON heavy. It uses a lot of multi-line JSON requests in tests which need to be escaped and concatenated which in turn makes them hard to read. Let's try to leverage Java 15 text blocks for representing them. Backports elastic#80751 to 8.0
arteam
added a commit
that referenced
this pull request
Dec 15, 2021
…#81771) * [8.0] Use Java 15 text blocks for JSON and multiline strings (#80751) The ES code base is quite JSON heavy. It uses a lot of multi-line JSON requests in tests which need to be escaped and concatenated which in turn makes them hard to read. Let's try to leverage Java 15 text blocks for representing them. Backports #80751 to 8.0
ywangd
added a commit
to ywangd/elasticsearch
that referenced
this pull request
Dec 20, 2021
The variable lives in Subject since elastic#80926. The PR also replace string concatenation with text block to be consistent with other refactoring efforts (elastic#80751).
19 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Core/Infra/Core
Core issues without another label
:Delivery/Tooling
Developer tooliing and automation
>non-issue
>refactoring
Team:Core/Infra
Meta label for core/infra team
Team:Delivery
Meta label for Delivery team
v8.0.0-rc1
v8.1.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The ES code base is quite JSON heavy. It uses a lot of multi-line JSON requests in tests which need to be escaped and concatenated which in turn makes them hard to read. Let's try to leverage Java 15 text blocks for representing them.