-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
🚨This issue needs some love.This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- Runtime: Python 3.7
- Server: Google App Engine Standard Edition
- ndb library: v1.0.1
Code example
client = ndb.Client(namespace="for_test")
...
with client.context():
entity = AAAA(
aaaa="aaaa"
)
user_key = entity.put()
entity = BBBB(
id="test",
bbbb="bbbb"
)
user_key = entity.put() AAAA is created on "for_test" namespace.
But, BBBB is created on default namespace
I think namespace should be set from client. like following
mode.py
class Model(_NotEqualMixin):
....
elif not key_parts_unspecified:
self._key = Key(
self._get_kind(),
id_,
parent=parent,
project=project,
namespace=namespace or client.namespace,
)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.