Skip to content

datastore: fixing a query limit bug#1251

Merged
stephenplusplus merged 1 commit intogoogleapis:masterfrom
callmehiphop:query-limit-bug
Apr 21, 2016
Merged

datastore: fixing a query limit bug#1251
stephenplusplus merged 1 commit intogoogleapis:masterfrom
callmehiphop:query-limit-bug

Conversation

@callmehiphop
Copy link
Contributor

Closes #1249

Since migrating to v1beta3 we've changed the way we store the limit value, this causes a bug if the user did not set a query limit when retrieving a large number of results.

@callmehiphop callmehiphop added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: datastore Issues related to the Datastore API. labels Apr 19, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 19, 2016
@stephenplusplus
Copy link
Contributor

LGTM. Is there a test case we can add to cover the situation caused in #1249?

@callmehiphop
Copy link
Contributor Author

@stephenplusplus I think this would obviously be difficult for us to reproduce via e2e tests, so I'll write a unit test.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling ea25254 on callmehiphop:query-limit-bug into 55aeb1f on GoogleCloudPlatform:master.

@callmehiphop
Copy link
Contributor Author

@stephenplusplus PTAL!

@stephenplusplus stephenplusplus merged commit 23ed3a3 into googleapis:master Apr 21, 2016
miguelvelezsa pushed a commit that referenced this pull request Jan 28, 2026
…ration (#1251)

* feat: New PropertyMask field which allows partial commits, lookups, and query results

PiperOrigin-RevId: 635449160

Source-Link: googleapis/googleapis@dde0ec1

Source-Link: googleapis/googleapis-gen@8caa60d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGNhYTYwZDlhZWE4Mjk2NGExOWNkZjhmYWY5MTM4NDkxMWRiOGJkZCJ9

* 🦉 Updates from OwlBot post-processor

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

* build: update gapic generator to allow individual location mixin generation

PiperOrigin-RevId: 638462084

Source-Link: googleapis/googleapis@e5d5636

Source-Link: googleapis/googleapis-gen@d02b2f9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDAyYjJmOTIzOWMzZTFkZTY0N2VmMzdmYjEwYTVlNDI0YWEwYjdhNSJ9

* 🦉 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>
Co-authored-by: danieljbruce <danieljbruce@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 5, 2026
…ration (#1251)

* feat: New PropertyMask field which allows partial commits, lookups, and query results

PiperOrigin-RevId: 635449160

Source-Link: googleapis/googleapis@dde0ec1

Source-Link: googleapis/googleapis-gen@8caa60d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGNhYTYwZDlhZWE4Mjk2NGExOWNkZjhmYWY5MTM4NDkxMWRiOGJkZCJ9

* 🦉 Updates from OwlBot post-processor

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

* build: update gapic generator to allow individual location mixin generation

PiperOrigin-RevId: 638462084

Source-Link: googleapis/googleapis@e5d5636

Source-Link: googleapis/googleapis-gen@d02b2f9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDAyYjJmOTIzOWMzZTFkZTY0N2VmMzdmYjEwYTVlNDI0YWEwYjdhNSJ9

* 🦉 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>
Co-authored-by: danieljbruce <danieljbruce@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: datastore Issues related to the Datastore API. cla: yes This human has signed the Contributor License Agreement. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants