-
Notifications
You must be signed in to change notification settings - Fork 42
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
Automatic conversion of query/ingestion urls in ingest clients #268
Conversation
This reverts commit b99a301.
Unit Test Results246 tests - 1 241 ✔️ - 1 47s ⏱️ - 1m 59s Results for commit 5d05551. ± Comparison against base commit cf21875. This pull request removes 5 and adds 4 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Codecov Report
@@ Coverage Diff @@
## master #268 +/- ##
============================================
- Coverage 54.42% 54.36% -0.07%
+ Complexity 575 565 -10
============================================
Files 95 95
Lines 3274 3232 -42
Branches 313 307 -6
============================================
- Hits 1782 1757 -25
+ Misses 1362 1353 -9
+ Partials 130 122 -8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Did you test with proxies ? |
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.
Seems OK
return (sourceCompressionType == null) && (dataFormat == null || dataFormat.isCompressible()); | ||
static String getQueryEndpoint(String clusterUrl) { | ||
if (clusterUrl.contains(INGEST_PREFIX)) { | ||
return clusterUrl.replaceFirst(INGEST_PREFIX, ""); |
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.
you can just do replace first - no need contains and else if
Changes: