-
Notifications
You must be signed in to change notification settings - Fork 66
Model.get or insert #92
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
Conversation
| """ | ||
| if not self.mutations: | ||
| return | ||
| # It's tempting to do something like: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
andrewsg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
src/google/cloud/ndb/model.py
Outdated
| Returns: | ||
| tasklets.Future: tuple[key.Key]: Keys for the newly allocated IDs. | ||
| tasklets.Future: Optional[Model]: The retreived entity, if one is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"retrieved" typo
fbc7054 to
5e027c2
Compare
Diff base is #91