Skip to content

Conversation

@chrisrossi
Copy link
Contributor

Diff base is #91

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 10, 2019
@chrisrossi chrisrossi requested a review from cguardia May 10, 2019 15:21
"""
if not self.mutations:
return
# It's tempting to do something like:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found this bug in the system tests for this feature. Left in this warning for future optimizers.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

"MetaModel",
"Model",
"Expando",
"transaction",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were already implemented in _transaction.py. Belatedly removing their stubs from model.py

Copy link
Contributor

@andrewsg andrewsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Returns:
tasklets.Future: tuple[key.Key]: Keys for the newly allocated IDs.
tasklets.Future: Optional[Model]: The retreived entity, if one is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"retrieved" typo

@chrisrossi chrisrossi force-pushed the Model.get_or_insert branch from fbc7054 to 5e027c2 Compare May 10, 2019 21:57
@chrisrossi chrisrossi merged commit 08d5840 into googleapis:master May 10, 2019
@chrisrossi chrisrossi deleted the Model.get_or_insert branch May 10, 2019 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants