Title: Problem handling local structured property kind without keys · Issue #627 · googleapis/google-cloud-python · GitHub
Open Graph Title: Problem handling local structured property kind without keys · Issue #627 · googleapis/google-cloud-python
X Title: Problem handling local structured property kind without keys · Issue #627 · googleapis/google-cloud-python
Description: According to: https://cloud.google.com/appengine/docs/python/ndb/properties#structured Local structured properties do not require keys and AppEngine appears to be fine with this. Unfortunately, the gcloud-python library expects keys for ...
Open Graph Description: According to: https://cloud.google.com/appengine/docs/python/ndb/properties#structured Local structured properties do not require keys and AppEngine appears to be fine with this. Unfortunately, the...
X Description: According to: https://cloud.google.com/appengine/docs/python/ndb/properties#structured Local structured properties do not require keys and AppEngine appears to be fine with this. Unfortunately, the...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/627
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem handling local structured property kind without keys","articleBody":"According to: https://cloud.google.com/appengine/docs/python/ndb/properties#structured\nLocal structured properties do not require keys and AppEngine appears to be fine with this.\nUnfortunately, the gcloud-python library expects keys for every entity, even if they're local structured ones.\nMy work around is to update my entities in AppEngine to provide dummy keys, however, it would be nice if the library supported it natively.\n\n```\ngcloud/datastore/helpers.pyc in entity_from_protobuf(pb)\n 46 :returns: The entity derived from the protobuf.\n 47 \"\"\"\n---\u003e 48 key = key_from_protobuf(pb.key)\n 49 entity_props = {}\n 50 exclude_from_indexes = []\n\ngcloud/datastore/helpers.pyc in key_from_protobuf(pb)\n 103 namespace = pb.partition_id.namespace\n 104 \n--\u003e 105 return Key(*path_args, namespace=namespace, dataset_id=dataset_id)\n\ngcloud/datastore/key.pyc in __init__(self, *path_args, **kwargs)\n 74 # _flat_path, _parent, _namespace and _dataset_id must be set before\n 75 # _combine_args() is called.\n---\u003e 76 self._path = self._combine_args()\n\ngcloud/datastore/key.pyc in _combine_args(self)\n 131 :raises: :class:`ValueError` if the parent key is not complete.\n 132 \"\"\"\n--\u003e 133 child_path = self._parse_path(self._flat_path)\n\ngcloud/datastore/key.pyc in _parse_path(path_args)\n 92 \"\"\"\n 93 if len(path_args) == 0:\n---\u003e 94 raise ValueError('Key path must not be empty.')\n\nValueError: Key path must not be empty.\n```\n","author":{"url":"https://github.com/twumdjin","@type":"Person","name":"twumdjin"},"datePublished":"2015-02-13T00:11:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/627/google-cloud-python/issues/627"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad2e4acc-e49f-f598-3cfb-1bf8f0d9cb5f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A44C:2E8599:2035EC:2F31D6:6A4DFF9E |
| html-safe-nonce | 5d419535cd67e78a85079ca02795c68c17a2c88c6e6e95578d5439f616aa8bb3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDRDOjJFODU5OToyMDM1RUM6MkYzMUQ2OjZBNERGRjlFIiwidmlzaXRvcl9pZCI6IjY3OTQ4MDc4NDY1NDQyMTE4NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0d46e900d9b9503c8bddb814c1b9f452f15f69ad846479d4355cc1c6bf7a92d5 |
| hovercard-subject-tag | issue:57540469 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/627/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f261ce6e19c759009a06e44f8679d383666168ab9cf2a0c82e79a5cf9199c97c/googleapis/google-cloud-python/issues/627 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f261ce6e19c759009a06e44f8679d383666168ab9cf2a0c82e79a5cf9199c97c/googleapis/google-cloud-python/issues/627 |
| og:image:alt | According to: https://cloud.google.com/appengine/docs/python/ndb/properties#structured Local structured properties do not require keys and AppEngine appears to be fine with this. Unfortunately, the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | twumdjin |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width