Skip to content
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

chore: Split postgres url in to parts. #157

Merged
merged 6 commits into from
Jul 27, 2022

Conversation

saxenakshitiz
Copy link
Contributor

No description provided.

@saxenakshitiz saxenakshitiz requested a review from a team July 26, 2022 17:51
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #157 (a89e955) into main (3952638) will increase coverage by 0.56%.
The diff coverage is 93.75%.

@@             Coverage Diff              @@
##               main     #157      +/-   ##
============================================
+ Coverage     77.28%   77.84%   +0.56%     
  Complexity      758      758              
============================================
  Files            80       79       -1     
  Lines          3310     3300      -10     
  Branches        368      368              
============================================
+ Hits           2558     2569      +11     
+ Misses          590      569      -21     
  Partials        162      162              
Flag Coverage Δ
integration 77.84% <93.75%> (+0.56%) ⬆️
unit 70.33% <12.50%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ertrace/core/query/service/QueryServiceConfig.java 90.90% <87.50%> (-0.48%) ⬇️
.../query/service/postgres/PostgresClientFactory.java 90.19% <100.00%> (+1.06%) ⬆️
...ervice/postgres/PostgresRequestHandlerBuilder.java 71.42% <100.00%> (-1.91%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.


private RequestHandlerClientConfig(Config config) {
this.type = config.getString(CONFIG_PATH_TYPE);
this.connectionString = config.getString(CONFIG_PATH_CONNECTION_STRING);
if (config.hasPath(CONFIG_PATH_USER)) {
this.user = Optional.of(config.getString(CONFIG_PATH_USER));
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

this.user = config.hasPath(CONFIG_PATH_USER) ? Optional.of(config.getString(CONFIG_PATH_USER)) : Optional.empty()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do it in follow up PR

Copy link
Contributor

@kotharironak kotharironak left a comment

Choose a reason for hiding this comment

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

overall, lgtm

@saxenakshitiz saxenakshitiz merged commit 7f074b9 into main Jul 27, 2022
@saxenakshitiz saxenakshitiz deleted the add_postgres_support_part4 branch July 27, 2022 16:25
@github-actions
Copy link

Unit Test Results

  38 files  ±0    38 suites  ±0   9s ⏱️ -1s
245 tests ±0  245 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 7f074b9. ± Comparison against base commit 3952638.

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.

2 participants