You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Silent error when calling datastore.put() on nonlist #649
Activity
dhermes commentedon Feb 17, 2015
@elibixby Thanks for reporting, this is bad! The entity is False-y, hence nothing is added to the batch.
By using a non-empty entity, the type mismatch actually causes an error (which is a "positive" in some sense):
PROPOSED FIX: Define
__bool__and__nonzero__on the class so thatEntityobjects are never False-y.tseaver commentedon Feb 24, 2015
Changing
__bool__/__nonzero__would break the "dict-ness" of Entity. #677 adds a guard for that case, raising a ValueError.dhermes commentedon Feb 24, 2015
Yeah that occurred to me after writing. Fix looks good.
Merge pull request #677 from tseaver/649-raise-on-single-entity-passe…
chore: Update gapic-generator-python to v1.11.2 (#649)
chore: release 0.35.0 (#649)
chore: move retry async check to wrap time (#649)
chore(revert): Revert "chore: move retry async check to wrap time (#649…
fix: Fix typehint on AsyncDocumentReference.get() (#649)
feat: set partial_success to default to true for batched logs (#649)
feat: don't flush entire global cache on transient errors (#654)
feat: set partial_success to default to true for batched logs (#649)
chore: add constraints file (#649)
chore: release 2.16.0 (#649)
fix: correct import path (#649)
chore(deps): update dependency packaging to v25 (#649)
chore(deps): update dependency google-cloud-pubsub to v2.9.0 (#649)
chore(deps): update dependency google-cloud-spanner to v3.12.0 (#649)