Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Jan 24, 2023

Syntatic sugar for when the client knows the desired security context type.

Syntatic sugar for when the client knows the desired security context type.
@rjrudin rjrudin requested a review from BillFarber January 24, 2023 14:21
isML11OrHigher = version.getMajor() >= 11;

client = newDatabaseClientBuilder().build();
schemasClient = newClientForDatabase("java-functest-schemas");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

newClientForDatabase was only used in 2 places, which doesn't seem like justification enough for a helper method since it barely saves on any code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be useful to the users of the client?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

newClientForDatabase was in src/test/java. I'm trying to slim down ConnectedRestQA as much as possible so it's easier to comprehend. So if there's a helper method only used in one or two places that doesn't help much at all, I'm removing those. No impact on Java Client users.

@rjrudin rjrudin merged commit 80ae55b into develop Jan 24, 2023
@rjrudin rjrudin deleted the feature/more-builder-methods branch January 24, 2023 16:18
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.

3 participants