-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New Datastore auto-gen. #4348
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
New Datastore auto-gen. #4348
Conversation
|
@lukesneeringer The dependency on |
|
Pretty sure it did go away. I just double-checked. Did I miss something? |
|
@dhermes I am also a bit baffled by the new system test errors. Any idea what |
| 'google-auth >= 1.0.2, < 2.0dev', | ||
| 'google-gax >= 0.15.15, < 0.16dev', | ||
| 'googleapis-common-protos[grpc] >= 1.5.2, < 2.0dev', | ||
| 'requests >= 2.18.4, < 3.0dev', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No, I was mistaken (I missed
I do not know, but it feels like a mock doesn't have |
It is a system test, so it should not be a mock issue. I am asking Alan to look into it for a bit. |
|
So the issue is that in datastore_client.py lookup takes positional arguments, (project_id, keys, read_options=None), and in _extended_lookup from client.py, datastore_api.lookup takes (*args, **kwargs). if those calls mismatch, we get problems. Changing the datastore_client.py lookup into def lookup(self, Any comments? |
|
Thanks -- that diagnosis was perfect. Fixed it. |
|
Now there's a linter feature request! Always make sure we pass positional as positional and keyword as keyword. |
|
Unrelated CI failure, and tests are known to work. Merging. |
|
Commit 9246de7 introduced following bug: Patch From 7470329ecf13d9f85bfe8af71ee533856ff9ec4c Mon Sep 17 00:00:00 2001
From: mathewcohle <mathewcohle@gmail.com>
Date: Mon, 13 Nov 2017 11:41:01 +0100
Subject: [PATCH] Fix wrong keyword argument name introduced in #4348
---
datastore/google/cloud/datastore/client.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datastore/google/cloud/datastore/client.py b/datastore/google/cloud/datastore/client.py
index a3d1f9d43..c42c75e32 100644
--- a/datastore/google/cloud/datastore/client.py
+++ b/datastore/google/cloud/datastore/client.py
@@ -133,7 +133,7 @@ def _extended_lookup(datastore_api, project, key_pbs,
while loop_num < _MAX_LOOPS: # loop against possible deferred.
loop_num += 1
lookup_response = datastore_api.lookup(
- project_id=project,
+ project=project,
read_options=read_options,
keys=key_pbs,
)
--
2.15.0Info |
This updates the auto-gen layer for Datastore.