8000 gcloud.datastore.key.Key.parent untested, undocumented, useless · Issue #135 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content
gcloud.datastore.key.Key.parent untested, undocumented, useless #135
Closed
@tseaver

Description

@tseaver

At the moment, it just raises NotImplementedError. I imagine that it is
intended to return a new key whose path is the "parent path" of the
current key. E.g.:

>>> from gcloud.datastore.key import Key
>>> PATH = [{'kind': 'parent', 'id': 123}, {'kind': 'child', 'id': 456}]
>>> child = Key(path=PATH)
>>> parent = key.parent()
>>> parent.path() == child.path[:-1]
True

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0