-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.triage meI really want to be triaged.I really want to be triaged.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
I'm not sure what its contract is, either:
>>> from gcloud.datastore.key import Key
>>> Key.from_path().path()
[{'kind': ''}]
>>> Key.from_path('abc').path()
[{'kind': ''}]
>>> Key.from_path('abc', 'def').path()
[{'kind': 'abc', 'name': 'def'}]
>>> Key.from_path('abc', 'def', 'ghi').path()
[{'kind': 'abc', 'name': 'def'}]
>>> Key.from_path('abc', 'def', 'ghi', 123).path()
[{'kind': 'abc', 'name': 'def'}, {'kind': 'ghi', 'id': 123}]
Dropping the odd last element doesn't seem correct.
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.triage meI really want to be triaged.I really want to be triaged.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.