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

Consistent Builders #280

Merged
merged 5 commits into from
Nov 30, 2017
Merged

Consistent Builders #280

merged 5 commits into from
Nov 30, 2017

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Nov 25, 2017

This is a start for making the various builders on requests and the client consistent. In any case where we have an inner builder we should:

  • Offer a convenient _fluent method that allows configuring the builder without explicitly creating it (this method does not stack)
  • Support any T: Into<TBuilder> so when there's an obvious default that can be passed in instead

There are some cases where we can't use FluentBuilder itself, like document_update with a script, since it changes the builder type, but can in other places.

@KodrAus KodrAus changed the title [WIP] Consistent Builders Consistent Builders Nov 30, 2017
@KodrAus
Copy link
Member Author

KodrAus commented Nov 30, 2017

This PR also refactors our address fetching a bit so that it doesn't kick in if you specify an exact set of RequestParams (where we already have an address to send the request on).

@KodrAus KodrAus merged commit 0391e4a into vNext Nov 30, 2017
@KodrAus KodrAus deleted the feat/consistent-builders branch November 30, 2017 07:43
KodrAus added a commit that referenced this pull request Apr 29, 2018
* rename .params to .params_fluent

* only fetch next address if builder has no value

* refactor client builders to use fluent methods
KodrAus added a commit that referenced this pull request May 7, 2018
* rename .params to .params_fluent

* only fetch next address if builder has no value

* refactor client builders to use fluent methods
KodrAus added a commit that referenced this pull request Jan 25, 2019
* rename .params to .params_fluent

* only fetch next address if builder has no value

* refactor client builders to use fluent methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant