Skip to content

Conversation

@HemangChothani
Copy link
Contributor

Fixes #106

@HemangChothani HemangChothani requested review from a team, crwilcox and tseaver November 9, 2020 10:39
@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/python-datastore API. label Nov 9, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2020
@chrisrossi
Copy link
Contributor

Does Datastore let you store a key with id of 0?

@HemangChothani
Copy link
Contributor Author

HemangChothani commented Nov 10, 2020

@chrisrossi Library doesn't raise an error when passing id =0 but if id is 0, generate automatically as mentioned in document here

@chrisrossi
Copy link
Contributor

@chrisrossi Library doesn't raise an error when passing id =0 but if id is 0, generate automatically as mentioned in document here

Fair enough! This looks good to me, but I would probably add a regression test.

@tseaver
Copy link
Contributor

tseaver commented Nov 13, 2020

@crwilcox, @czahedi Again, the requiresCodeOwnerReviews: true policy means my approval is not sufficient to merge this PR.

@crwilcox crwilcox merged commit 6f28b84 into googleapis:master Nov 13, 2020
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 googleapis/python-datastore API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

datastore Key id_or_name() returns None when id is 0

4 participants