Skip to content

fix: connection URL with custom base path, update Kotlin to 1.5.10#227

Merged
bednar merged 7 commits intomasterfrom
fix/connection-url
Jun 16, 2021
Merged

fix: connection URL with custom base path, update Kotlin to 1.5.10#227
bednar merged 7 commits intomasterfrom
fix/connection-url

Conversation

@bednar
Copy link
Copy Markdown
Contributor

@bednar bednar commented Jun 1, 2021

Closes #226

Proposed Changes

Supports URL specified like:

Updated Kotlin due the compatibility with JDK 16:

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • mvn test completes successfully
  • Commit messages are in semantic format
  • Sign CLA (if not already signed)

@bednar bednar force-pushed the fix/connection-url branch from 9aef4df to 6fff1ed Compare June 1, 2021 07:55
@bednar bednar marked this pull request as ready for review June 1, 2021 08:06
@bednar bednar requested a review from rhajek June 1, 2021 08:06
@bednar bednar force-pushed the fix/connection-url branch from 6fff1ed to 4458153 Compare June 4, 2021 07:46
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 4, 2021

Codecov Report

Merging #227 (3b7f734) into master (7e8afdf) will increase coverage by 0.01%.
The diff coverage is 87.50%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #227      +/-   ##
============================================
+ Coverage     89.16%   89.18%   +0.01%     
  Complexity      442      442              
============================================
  Files           143      143              
  Lines          5696     5706      +10     
  Branches        269      270       +1     
============================================
+ Hits           5079     5089      +10     
  Misses          538      538              
  Partials         79       79              
Impacted Files Coverage Δ
...ava/com/influxdb/client/InfluxDBClientOptions.java 96.32% <86.66%> (+0.29%) ⬆️
...om/influxdb/client/flux/FluxConnectionOptions.java 91.83% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e8afdf...3b7f734. Read the comment docs.

@bednar bednar added this to the 2.4.0 milestone Jun 10, 2021
@bednar bednar force-pushed the fix/connection-url branch from 4458153 to 3b7f734 Compare June 10, 2021 06:55
String serverURL = String.format("http://%s:%d", mockServer.url("").host(), mockServer.url("").port());

String[][] connectionStrings = {
// http://localhost:8086/influxDB/ -> http://localhost:8086/influxDB/api/v2/query
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you verify that url parsing is working also for URL without explicitly specified port ? Like https://us-west-2-1.aws.cloud2.influxdata.com/ ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread client/src/main/java/com/influxdb/client/InfluxDBClientOptions.java
@bednar bednar requested a review from rhajek June 14, 2021 06:56
@bednar bednar changed the title fix: connection URL with custom base path fix: connection URL with custom base path, update Kotlin to 1.5.10 Jun 14, 2021
@bednar
Copy link
Copy Markdown
Contributor Author

bednar commented Jun 14, 2021

@bednar bednar merged commit e2adb62 into master Jun 16, 2021
@bednar bednar deleted the fix/connection-url branch June 16, 2021 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retrofit2 Removes characters after hostname.

3 participants