-
Notifications
You must be signed in to change notification settings - Fork 642
datastore: tests: refactor pb/transaction. #255
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
Conversation
lib/datastore/request.js
Outdated
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
263ff82 to
00db490
Compare
|
Overall looks really good. Just wondering why createRequest_ takes a req object? It's confusing that a method that creates requests needs a "request". :) Can we clarify that? |
|
You named it, bro :p. I was thinking that, too. How about makeReq like the On Sunday, October 12, 2014, Ryan Seys [email protected] wrote:
|
|
I renamed it from makeReq_. Yes we can change it back if you'd like, but that still doesn't help explain why it takes a request object :P |
|
It's piping the request up to our "requester", adding headers along the On Sunday, October 12, 2014, Ryan Seys [email protected] wrote:
|
|
And our requester is called request, which takes the request from our Whoa. On Sunday, October 12, 2014, Stephen Sawchuk [email protected] wrote:
|
|
And if I recall correctly, we use the |
-createRequest_
+makeReq_ |
|
Maybe rename |
|
Renamed to |
|
@ryanseys any better? |
|
Yes, this is better! |
|
LGTM. |
datastore: tests: refactor pb/transaction.
* chore: migrate to owl bot * chore: copy files from googleapis-gen eebcfa346c9963da765cd71722c40e04dc3621dd * chore: run the post processor * 🦉 Updates from OwlBot * chore: update post processor docker image * 🦉 Updates from OwlBot Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* test: use strictEqual in tests * run gts fix
* test: use strictEqual in tests * run gts fix
This makes it so protobuf request encoding/response decoding and transactional/non-transactional properties are all handled in one place.