Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Jan 23, 2023

443 is written in stone for now, and thus the UX can be simpler by forcing the port to that value.

@rjrudin rjrudin requested a review from BillFarber January 23, 2023 21:29

static OkHttpClient.Builder newOkHttpClientBuilder(String host, int port, DatabaseClientFactory.SecurityContext securityContext) {
return OkHttpUtil.newOkHttpClientBuilder(host, port, securityContext);
static OkHttpClient.Builder newOkHttpClientBuilder(String host, DatabaseClientFactory.SecurityContext securityContext) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is what ml-app-deployer users - it becomes simpler because the ML cloud auth configurer can safely assume usage of 443 for obtaining an access token, so "port" doesn't need to be provided anymore.

"When the port is 443, OkHttp won't include it in the URL");
}

@Test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test reflects a now-invalid scenario and has thus been removed.

@rjrudin rjrudin assigned anu3990 and unassigned anu3990 Jan 24, 2023
@rjrudin rjrudin requested a review from anu3990 January 24, 2023 00:48
@rjrudin
Copy link
Contributor Author

rjrudin commented Jan 24, 2023

@anu3990 This is likely worth doing in the Node Client as well.

443 is written in stone for now, and thus the UX can be simpler by forcing the port to that value. 

Also, removed support for defaulting to 443 in DatabaseClientPropertySource. That was intended for ML Cloud users, but the better way to do it is via the DatabaseClientFactory method that's modified in this PR.
@rjrudin rjrudin force-pushed the feature/default-443 branch from fe450cd to 6cec368 Compare January 24, 2023 12:42
@rjrudin rjrudin merged commit 5b54179 into develop Jan 24, 2023
@rjrudin rjrudin deleted the feature/default-443 branch January 24, 2023 14:08
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.

4 participants