René's URL Explorer Experiment


Title: datastore: Nested entity parsing fails · Issue #616 · googleapis/google-cloud-python · GitHub

Open Graph Title: datastore: Nested entity parsing fails · Issue #616 · googleapis/google-cloud-python

X Title: datastore: Nested entity parsing fails · Issue #616 · googleapis/google-cloud-python

Description: https://cloud.google.com/appengine/docs/python/ndb/properties#structured In order to write entities with structured properties, I tried to read them first, to figure out the format. First StructuredProperty. class Item_Meta(ndb.Model): x...

Open Graph Description: https://cloud.google.com/appengine/docs/python/ndb/properties#structured In order to write entities with structured properties, I tried to read them first, to figure out the format. First Structure...

X Description: https://cloud.google.com/appengine/docs/python/ndb/properties#structured In order to write entities with structured properties, I tried to read them first, to figure out the format. First Structure...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/616

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"datastore: Nested entity parsing fails","articleBody":"https://cloud.google.com/appengine/docs/python/ndb/properties#structured\n\nIn order to write entities with structured properties, I tried to read them first, to figure out the format.\n\nFirst `StructuredProperty`.\n\n``` Python\nclass Item_Meta(ndb.Model):\n    xy = ndb.IntegerProperty(repeated = True)\n\nclass Item(ndb.Model):\n    meta = ndb.StructuredProperty(Item_Meta)\n\nitem = Item()\nitem.meta = Item_Meta(xy = [100, 200])\nitem.put() # 5710239819104256\n```\n\n``` Python\n\u003e\u003e\u003e datastore.api.get([datastore.Key('Item', 5710239819104256)])\n[\u003cEntity[{'kind': u'Item', 'id': 5710239819104256L}] {u'meta.xy': [100L, 200L]}\u003e]\n```\n\nNext `LocalStructuredProperty`.\n\n\u003e Although a `StructuredProperty` can be repeated and a `StructuredProperty` can contain another `StructuredProperty`, beware: if one structured property contains another, only one of them can be repeated. A work-around is to use `LocalStructuredProperty`, which does not have this constraint.\n\n``` Python\nclass Item_Meta(ndb.Model):\n    xy = ndb.IntegerProperty(repeated = True)\n\nclass Item(ndb.Model):\n    meta = ndb.LocalStructuredProperty(Item_Meta, repeated = True)\n\nitem = Item()\nitem.meta = [Item_Meta(xy = [100, 200])]\nitem.put() # 6217263929622528\n```\n\n``` Python\n\u003e\u003e\u003e datastore.api.get([datastore.Key('Item', 6217263929622528)])\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/api.py\", line 229, in get\n    entities.append(helpers.entity_from_protobuf(entity_pb))\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/helpers.py\", line 53, in entity_from_protobuf\n    value = _get_value_from_property_pb(property_pb)\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/helpers.py\", line 237, in _get_value_from_property_pb\n    return _get_value_from_value_pb(property_pb.value)\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/helpers.py\", line 217, in _get_value_from_value_pb\n    result = [_get_value_from_value_pb(x) for x in value_pb.list_value]\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/helpers.py\", line 214, in _get_value_from_value_pb\n    result = entity_from_protobuf(value_pb.entity_value)\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/helpers.py\", line 48, in entity_from_protobuf\n    key = key_from_protobuf(pb.key)\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/helpers.py\", line 105, in key_from_protobuf\n    return Key(*path_args, namespace=namespace, dataset_id=dataset_id)\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/key.py\", line 76, in __init__\n    self._path = self._combine_args()\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/key.py\", line 133, in _combine_args\n    child_path = self._parse_path(self._flat_path)\n  File \"/home/user/.local/lib/python2.7/site-packages/gcloud/datastore/key.py\", line 94, in _parse_path\n    raise ValueError('Key path must not be empty.')\nValueError: Key path must not be empty.\n```\n","author":{"url":"https://github.com/pdknsk","@type":"Person","name":"pdknsk"},"datePublished":"2015-02-11T00:18:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/616/google-cloud-python/issues/616"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cce4745e-107c-75de-a0f5-b67aa4319482
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id81C4:354450:2DF91A:3D283D:6A4D8CE2
html-safe-nonce79f86e87777708ea09feb67fcc142dedbc44ccf06570113c837586d3565d1aff
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUM0OjM1NDQ1MDoyREY5MUE6M0QyODNEOjZBNEQ4Q0UyIiwidmlzaXRvcl9pZCI6Ijg2NzY2NTEzNDkyODkzMDczNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac94b01ecb46d6762ceb019d757c23b56a3e5b3abdbb7c61b1aed7c0f353583c12
hovercard-subject-tagissue:57259312
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/616/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e72c76d2607b85b0007acff8a7a512e5ae712aed6a8ef779a99c848f74bd01a8/googleapis/google-cloud-python/issues/616
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e72c76d2607b85b0007acff8a7a512e5ae712aed6a8ef779a99c848f74bd01a8/googleapis/google-cloud-python/issues/616
og:image:althttps://cloud.google.com/appengine/docs/python/ndb/properties#structured In order to write entities with structured properties, I tried to read them first, to figure out the format. First Structure...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepdknsk
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/616#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F616
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F616
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/google-cloud-python/issues/616
Reloadhttps://github.com/googleapis/google-cloud-python/issues/616
Reloadhttps://github.com/googleapis/google-cloud-python/issues/616
Please reload this pagehttps://github.com/googleapis/google-cloud-python/issues/616
googleapis https://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Fork 1.7k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Star 5.3k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Code https://github.com/googleapis/google-cloud-python
Issues 439 https://github.com/googleapis/google-cloud-python/issues
Pull requests 129 https://github.com/googleapis/google-cloud-python/pulls
Discussions https://github.com/googleapis/google-cloud-python/discussions
Actions https://github.com/googleapis/google-cloud-python/actions
Projects https://github.com/googleapis/google-cloud-python/projects
Security and quality 0 https://github.com/googleapis/google-cloud-python/security
Insights https://github.com/googleapis/google-cloud-python/pulse
Code https://github.com/googleapis/google-cloud-python
Issues https://github.com/googleapis/google-cloud-python/issues
Pull requests https://github.com/googleapis/google-cloud-python/pulls
Discussions https://github.com/googleapis/google-cloud-python/discussions
Actions https://github.com/googleapis/google-cloud-python/actions
Projects https://github.com/googleapis/google-cloud-python/projects
Security and quality https://github.com/googleapis/google-cloud-python/security
Insights https://github.com/googleapis/google-cloud-python/pulse
#617https://github.com/googleapis/google-cloud-python/pull/617
datastore: Nested entity parsing failshttps://github.com/googleapis/google-cloud-python/issues/616#top
#617https://github.com/googleapis/google-cloud-python/pull/617
https://github.com/dhermes
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
https://github.com/pdknsk
pdknskhttps://github.com/pdknsk
on Feb 11, 2015https://github.com/googleapis/google-cloud-python/issues/616#issue-57259312
https://cloud.google.com/appengine/docs/python/ndb/properties#structuredhttps://cloud.google.com/appengine/docs/python/ndb/properties#structured
dhermeshttps://github.com/dhermes
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.