Skip to content

Use Java 15 text blocks for JSON and multiline strings#80751

Merged
arteam merged 61 commits intoelastic:masterfrom
arteam:use-text-blocks
Dec 15, 2021
Merged

Use Java 15 text blocks for JSON and multiline strings#80751
arteam merged 61 commits intoelastic:masterfrom
arteam:use-text-blocks

Conversation

@arteam
Copy link
Copy Markdown
Contributor

@arteam arteam commented Nov 16, 2021

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.

@arteam arteam force-pushed the use-text-blocks branch 6 times, most recently from a403cb8 to f39bc10 Compare November 16, 2021 13:42
@pugnascotia
Copy link
Copy Markdown
Contributor

I'm happy to go over this properly when we're in a position to merge 👍

@arteam arteam force-pushed the use-text-blocks branch 21 times, most recently from 9620029 to 9f0a77a Compare November 20, 2021 18:01
arteam and others added 20 commits December 9, 2021 20:47
…ternal/docker/DockerSupportService.java

Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…ternal/precommit/DependencyLicensesTask.java

Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…documentation/SnapshotClientDocumentationIT.java

Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…ustache/RestMultiSearchTemplateActionTests.java

Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…security/ClearRealmCacheResponseTests.java

Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…documentation/WatcherDocumentationIT.java

Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…ava/org/elasticsearch/xpack/ml/integration/ExplainDataFrameAnalyticsIT.java

Co-authored-by: Rory Hunter <pugnascotia@users.noreply.github.com>
…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>
Copy link
Copy Markdown
Contributor

@pugnascotia pugnascotia left a 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! 🚀

@arteam
Copy link
Copy Markdown
Contributor Author

arteam commented Dec 14, 2021

@elasticmachine update branch

@arteam
Copy link
Copy Markdown
Contributor Author

arteam commented Dec 15, 2021

Thanks, Rory!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants