GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Expose 'missing'/'deferred' in 'Connection.lookup'/'Dataset.get_entities' by tseaver · Pull Request #429 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Dec 17, 2014

Copy link
Copy Markdown
Contributor

If 'deferred' list is not passed, the connection retries any keys in
a deferred response.

Closes #306.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tseaver
Expose 'missing'/'deferred' in 'Connection.lookup'/'Dataset.get_entit…
6b1b431
…ies'.

If 'deferred' list is not passed, the connection retries any keys in
a deferred response.

Closes #306.
tseaver
tseaver reviewed Dec 17, 2014
View reviewed changes
Comment thread gcloud/datastore/connection.py Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Dec 17, 2014

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 6b1b431 on tseaver:306-connection_lookup_missing_deferred into ac999e8 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Dec 17, 2014
View reviewed changes
Comment thread gcloud/datastore/connection.py Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Dec 17, 2014

Copy link
Copy Markdown
Contributor

Did a full review, everything looks good pending comments.

Also don't forget to remove the question in the comment about the sleep.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added 3 commits December 17, 2014 14:59
@tseaver
Remove note about sleep.
45cdac1
@pcostell says not to bother.
@tseaver
Move copy-deferred-keys-to-request logic out of 'Connection.lookup'.
b9db057
Addresses @dhermes comment:
https://github.com/GoogleCloudPlatform/gcloud-python/pull/429/files#r21997643
@tseaver
Squash checks of protobuf call headers into helper method.
2db4b5d
Addresses @dhermes comments:
https://github.com/GoogleCloudPlatform/gcloud-python/pull/429/files#r21998236
https://github.com/GoogleCloudPlatform/gcloud-python/pull/429/files#r21998714
@coveralls

coveralls commented Dec 17, 2014

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 2db4b5d on tseaver:306-connection_lookup_missing_deferred into ac999e8 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Dec 17, 2014

Copy link
Copy Markdown
Contributor

So we still need to address [:] vs. .extend issue and the question of looping for a massive number of entities in a fetch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Document that / lists passed as arguments must be empty.
5ab96e8
@coveralls

coveralls commented Dec 17, 2014

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 5ab96e8 on tseaver:306-connection_lookup_missing_deferred into ac999e8 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Dec 17, 2014

Copy link
Copy Markdown
Contributor Author

@dhermes if the back-end imposed a limit on number of keys, we could just let that error propagate.

As it is, if the user straps a cannon to his shin and pulls the trigger, we can't do much to help. They may get a 503 (for DoSing the API) anyway, and if not, they eventually get their data (even if they rack up big charges for it).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Dec 17, 2014

Copy link
Copy Markdown
Contributor

We can make it harder to do pathological things, like putting the cannon in a locked cabinet in your analogy.

From previous discussions with @pcostell, the backend limits the number of keys and also the length of the request, but after that just dumps them in deferred. Now that you mention it though, 100,000 keys would probably exceed a maximum payload size of a request, which I'm sure exists.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Enforce that / lists passed as arguments must be empty.
f11fa24
@dhermes

dhermes commented Dec 17, 2014

Copy link
Copy Markdown
Contributor

Eek, lint failure.

@tseaver to make tox -e lint faster locally, I use

export GCLOUD_REMOTE_FOR_LINT="official"  # You use upstream I believe
export GCLOUD_BRANCH_FOR_LINT="master"

I wrote about it in the CONTRIBUTING.md file but I'm not sure anyone other than me uses it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Dead chickens on the altar of pylint/pep8 continuation taboos.
9cd0f6a
@tseaver

tseaver commented Dec 17, 2014

Copy link
Copy Markdown
Contributor Author

I normally run 'tox' (all environments). 9cd0f6a will clean it up.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Dec 17, 2014

Copy link
Copy Markdown
Contributor Author

Note also that running with those variables sometimes leads to false-positives (weird cases where the not-included files somehow help to satisfy a check).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Dec 17, 2014

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 9cd0f6a on tseaver:306-connection_lookup_missing_deferred into ac999e8 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Dec 17, 2014

Copy link
Copy Markdown
Contributor Author

@dhermes anything left unaddressed?

Note that this kind of review is where the Github UI review breaks down: it is too hard for either the contributor or the reviewer to figure out what issues remain to be resolved.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Dec 17, 2014

Copy link
Copy Markdown
Contributor

The only remaining thing is the question about protecting novice users from themselves, which we can punt on in an issue.

Hopefully @pcostell or someone else can chime in on the discussion in #306.

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added a commit that referenced this pull request Dec 17, 2014
@tseaver
Merge pull request #429 from tseaver/306-connection_lookup_missing_de…
c2ba130
…ferred

Expose 'missing'/'deferred' in 'Connection.lookup'/'Dataset.get_entities'
@tseaver
tseaver merged commit c2ba130 into googleapis:master Dec 17, 2014
@tseaver
tseaver deleted the 306-connection_lookup_missing_deferred branch December 17, 2014 21:54
@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Dec 31, 2015
parthea pushed a commit that referenced this pull request Jun 4, 2023
@gcf-owl-bot
build(deps): bump certifi from 2022.9.24 to 2022.12.7 [autoapprove] (#…
cf65467
…429)

Source-Link: https://togithub.com/googleapis/synthtool/commit/b4fe62efb5114b6738ad4b13d6f654f2bf4b7cc0
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3bf87e47c2173d7eed42714589dc4da2c07c3268610f1e47f8e1a30decbfc7f1
parthea pushed a commit that referenced this pull request Jun 4, 2023
@gcf-owl-bot
chore: use gapic generator python 1.4.1 (#429)
b4b56c7
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 473833416

Source-Link: googleapis/googleapis@565a550

Source-Link: googleapis/googleapis-gen@1ee1a06
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWVlMWEwNmM2ZGUzY2E4Yjg0MzU3MmMxZmRlMDU0OGY4NDIzNjk4OSJ9
parthea pushed a commit that referenced this pull request Jun 4, 2023
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v3.4.2 (#429)
4acd366
parthea pushed a commit that referenced this pull request Jul 6, 2023
@gcf-owl-bot
docs: Fix formatting of request arg in docstring (#429)
3fecec6
* docs: Fix formatting of request arg in docstring

chore: Update gapic-generator-python to v1.9.1
PiperOrigin-RevId: 518604533

Source-Link: googleapis/googleapis@8a085ae

Source-Link: googleapis/googleapis-gen@b2ab4b0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Aug 15, 2023
@renovate-bot @gcf-owl-bot @parthea
chore(deps): update all dependencies (#429)
3e8a5a5
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* revert

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Sep 20, 2023
@gcf-owl-bot
build(deps): [autoapprove] bump certifi from 2022.12.7 to 2023.7.22 (#…
ec27e97
…429)

Source-Link: https://togithub.com/googleapis/synthtool/commit/395d53adeeacfca00b73abf197f65f3c17c8f1e9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:6c1cbc75c74b8bdd71dada2fa1677e9d6d78a889e9a70ee75b93d1d0543f96e1
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
@gcf-owl-bot
chore: use gapic-generator-python 0.53.4 (#429)
7052c21
- [ ] Regenerate this pull request now.

docs: list oneofs in docstring
docs(v2beta1): clarified meaning of the legacy editions 
docs(v2beta1): clarified semantic of the streaming APIs 
fix(deps): require google-api-core >= 1.28.0
fix(deps): drop packaging dependency

committer: busunkim96@
PiperOrigin-RevId: 406468269

Source-Link: googleapis/googleapis@83d81b0

Source-Link: googleapis/googleapis-gen@2ff001f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZmMDAxZmJhY2I5ZTc3ZTcxZDczNGRlNWY5NTVjMDVmZGFlODUyNiJ9
parthea pushed a commit that referenced this pull request Sep 22, 2023
@release-please
chore(main): release 3.10.1 (#429)
01863ec
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Sep 22, 2023
@renovate-bot @parthea
chore(deps): update all dependencies (#429)
8ad2a1b
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Oct 21, 2023
@renovate-bot
chore(deps): update all dependencies (#429)
e0a95af
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: [autoapprove] Pin flake8 version (#429)
1f7adda
Source-Link: https://togithub.com/googleapis/synthtool/commit/0ddbff8012e47cde4462fe3f9feab01fbc4cdfd6
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bced5ca77c4dda0fd2f5d845d4035fc3c5d3d6b81f245246a36aee114970082b
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: remove 'pip install' statements from python_library templates …
0a88d4f
…[autoapprove] (#429)

Source-Link: googleapis/synthtool@1f37ce7
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8e84e0e0d71a0d681668461bba02c9e1394c785f31a10ae3470660235b673086

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Aug 21, 2025
@busunkim96
chore: allow releases from previous major branches (#429)
f9486e7
parthea pushed a commit that referenced this pull request Sep 16, 2025
@busunkim96 @parthea
chore: allow releases from previous major branches (#429)
5a9d7a0
parthea pushed a commit that referenced this pull request Nov 22, 2025
@tseaver
chore: exclude 'CODEOWNERS' from templated files (#429)
ab0555e
See: googleapis/synthtool#1201
parthea pushed a commit that referenced this pull request Nov 24, 2025
@software-dov
Stabilize resource name funcs (#438)
2c39024
Fix for #429
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore(python): update dependency distlib (#429)
f8ca8ff
Source-Link: googleapis/synthtool@c4dd595
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ce3c1686bc81145c81dd269bd12c4025c6b275b22d14641358827334fddb1d72

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@release-please
chore(main): release 2.15.1 (#429)
bad62e0
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
build(deps): bump cryptography from 39.0.1 to 41.0.0 in /synthtool/gc…
8bdeacc
…p/templates/python_library/.kokoro (#429)

Source-Link: googleapis/synthtool@d0f51a0
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:240b5bcc2bafd450912d2da2be15e62bc6de2cf839823ae4bf94d4f392b451dc

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@tseaver
fix: unbreak query orders w/ non-orderable operators (#453)
c6dd9b4
Closes #429.
parthea pushed a commit that referenced this pull request Mar 2, 2026
@anguillanneuf
sample: add publish flow control sample and other nits (#429)
eb96b46
* sample: add publish flow control sample and other nits

* restore changes in untouched files

* address peter's comments
parthea pushed a commit that referenced this pull request Mar 9, 2026
@renovate-bot
chore(deps): update dependency certifi to v2024.8.30 (#429)
cc46a50
parthea pushed a commit that referenced this pull request Mar 9, 2026
@tseaver
tests: fix unit tests broken by dependency drift (#430)
ff4617b
* tests: fix 'TestClient.test_ctor_wo_project'

Broken by googleapis/python-cloud-core#51

Closes #427

* chore(deps): pin googleapis-common-protos' FBO python2.7

Closes #429
parthea pushed a commit that referenced this pull request Mar 9, 2026
@larkee @tseaver
fix: avoid bad version of opentelemetry-instrumentation (#429)
1da8ec5
Versions >= `0.23b0` break us.

Co-authored-by: larkee <[email protected]>
Co-authored-by: Tres Seaver <[email protected]>
parthea pushed a commit that referenced this pull request Mar 9, 2026
@release-please
chore: release 3.7.0 (#398)
7cc180d
🤖 I have created a release \*beep\* \*boop\*
---
## [3.7.0](https://www.github.com/googleapis/python-spanner/compare/v3.6.0...v3.7.0) (2021-07-29)


### Features

* add always_use_jwt_access ([#381](https://www.github.com/googleapis/python-spanner/issues/381)) ([0f1a5de](https://www.github.com/googleapis/python-spanner/commit/0f1a5ded572685a96d29a60c959cb00a48f7a87f))
* add configurable leader placement support ([#399](https://www.github.com/googleapis/python-spanner/issues/399)) ([7f1b120](https://www.github.com/googleapis/python-spanner/commit/7f1b1209e62062014545cf959d41f04184552eec))
* add sample for low cost instances ([#392](https://www.github.com/googleapis/python-spanner/issues/392)) ([3f4f93f](https://www.github.com/googleapis/python-spanner/commit/3f4f93f75f5585a82047bf8d83a24622ad776ecb))


### Bug Fixes

* avoid bad version of `opentelemetry-instrumentation` ([#429](https://www.github.com/googleapis/python-spanner/issues/429)) ([1620c12](https://www.github.com/googleapis/python-spanner/commit/1620c12a56e0d007cf010690bab303db06d0c914))
* **deps:** pin 'google-{api,cloud}-core' to allow 2.x versions ([#415](https://www.github.com/googleapis/python-spanner/issues/415)) ([b0455d0](https://www.github.com/googleapis/python-spanner/commit/b0455d0ab657cd053a7527e99bdbfadc4de23b30))
* disable always_use_jwt_access ([c37bf21](https://www.github.com/googleapis/python-spanner/commit/c37bf21afdf417757eff67fe8500aa65f49fd5ad))
* disable always_use_jwt_access ([#395](https://www.github.com/googleapis/python-spanner/issues/395)) ([c37bf21](https://www.github.com/googleapis/python-spanner/commit/c37bf21afdf417757eff67fe8500aa65f49fd5ad))
* enable self signed jwt for grpc ([#427](https://www.github.com/googleapis/python-spanner/issues/427)) ([2487800](https://www.github.com/googleapis/python-spanner/commit/2487800e31842a44dcc37937c325e130c8c926b0))
* support merging for NUMERIC values ([#434](https://www.github.com/googleapis/python-spanner/issues/434)) ([06b4215](https://www.github.com/googleapis/python-spanner/commit/06b4215f76ae806eba1d0d07115c8c90b8c7482d)), closes [#433](https://www.github.com/googleapis/python-spanner/issues/433)


### Documentation

* fix docstring for session.py ([#387](https://www.github.com/googleapis/python-spanner/issues/387)) ([3132587](https://www.github.com/googleapis/python-spanner/commit/3132587453f7bd0be72ebc393626b5c8b1bab982))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
parthea pushed a commit that referenced this pull request Mar 9, 2026
@gcf-owl-bot @Linchin
chore(python): remove configure_previous_major_version_branches (#429)
d0a1de4
Source-Link:
googleapis/synthtool@6702a34
Post-Processor:
gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:fbbc8db67afd8b7d71bf694c5081a32da0c528eba166fbcffb3b6e56ddf907d5

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Lingqing Gan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: datastore Issues related to the Datastore API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

'Connection.lookup' can return 'missing' and 'deferred' results

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@tseaver @coveralls @dhermes
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.