Title: Entity.reload does not work · Issue #464 · googleapis/google-cloud-python · GitHub
Open Graph Title: Entity.reload does not work · Issue #464 · googleapis/google-cloud-python
X Title: Entity.reload does not work · Issue #464 · googleapis/google-cloud-python
Description: We should make sure to fix the tests as well as the code: key = self._must_key dataset = self._must_dataset entity = dataset.get_entity(key.to_protobuf()) (the key should be re-loaded, not the key protobuf). Example failure: >>> entity.r...
Open Graph Description: We should make sure to fix the tests as well as the code: key = self._must_key dataset = self._must_dataset entity = dataset.get_entity(key.to_protobuf()) (the key should be re-loaded, not the key ...
X Description: We should make sure to fix the tests as well as the code: key = self._must_key dataset = self._must_dataset entity = dataset.get_entity(key.to_protobuf()) (the key should be re-loaded, not the key ...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/464
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Entity.reload does not work","articleBody":"We should make sure to fix the tests as well as the [code](https://github.com/GoogleCloudPlatform/gcloud-python/blob/b343acf4ade6dfc659f71a981eb51b62d22e33a0/gcloud/datastore/entity.py#L215):\n\n``` python\n key = self._must_key\n dataset = self._must_dataset\n entity = dataset.get_entity(key.to_protobuf())\n```\n\n(the `key` should be re-loaded, not the key protobuf).\n\nExample failure:\n\n``` python\n\u003e\u003e\u003e entity.reload()\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"gcloud/datastore/entity.py\", line 215, in reload\n entity = dataset.get_entity(key.to_protobuf())\n File \"gcloud/datastore/dataset.py\", line 139, in get_entity\n key = Key.from_path(*key_or_path)\nTypeError: from_path() argument after * must be a sequence, not Key\n```\n","author":{"url":"https://github.com/dhermes","@type":"Person","name":"dhermes"},"datePublished":"2014-12-23T07:47:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/464/google-cloud-python/issues/464"}
| 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:9a8b2dfa-6141-bf0f-2eef-83247517e260 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C510:14D04D:5691:712D:6A4D8D0C |
| html-safe-nonce | cf1c89b56fbbb7adba6e6a824f0aaaf3a55d6ab4d88b2fef0970db27c989a5d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTEwOjE0RDA0RDo1NjkxOjcxMkQ6NkE0RDhEMEMiLCJ2aXNpdG9yX2lkIjoiMzc0MjE0NzUxMzIyNzM3OTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bdb59ef14954b0009de8a2ee012b29f866959cc4745642e96008dbd7acfc8f0a |
| hovercard-subject-tag | issue:52720780 |
| 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/464/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e68c477b863df4fd028cfe783df293032fa6f19caabce7268b01b114e6601810/googleapis/google-cloud-python/issues/464 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e68c477b863df4fd028cfe783df293032fa6f19caabce7268b01b114e6601810/googleapis/google-cloud-python/issues/464 |
| og:image:alt | We should make sure to fix the tests as well as the code: key = self._must_key dataset = self._must_dataset entity = dataset.get_entity(key.to_protobuf()) (the key should be re-loaded, not the key ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dhermes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320 |
| 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 | bffd5484f01713a661b03469b77678f72b6574ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width