-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storing an Entity as an indexed property value always fails #529
Comments
Note, also setting e['foo'] = 'a' * 501 will cause a failure
since the spec states
Maybe we are better off just documenting this and letting the users worry about it. I think in terms of code complexity, we are better off doing nothing (beyond documentation) and waiting for user feedback. |
Is there stuff in the |
@proppy Is there somewhere under |
@dhermes In the API section there is a link to the |
@proppy Sorry I was unclear. I was asking if the user-facing docs actually have sections to match the "docs" from the spec. For example
is in the spec, but is it documented anywhere else? Same for
and other useful information from the spec. |
Sorry if I was unclear too :) At first there was a proto API reference that was duplicating the proto comment, but it was removed in a favor of a link to the file in the github repo. The JSON API Reference source the doc from the same proto, so in theory https://cloud.google.com/datastore/docs/apis/v1beta2/entity should feature the same comment for the |
Thanks. So in general we can point people to those docs for failure cases. |
Deferring this to #532 |
* fix: Add async context manager return types chore: Mock return_value should not populate oneof message fields chore: Support snippet generation for services that only support REST transport chore: Update gapic-generator-python to v1.11.0 PiperOrigin-RevId: 545430278 Source-Link: googleapis/googleapis@601b532 Source-Link: googleapis/googleapis-gen@b3f18d0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjNmMThkMGY2NTYwYTg1NTAyMmZkMDU4ODY1ZTc2MjA0NzlkN2FmOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
) Source-Link: googleapis/synthtool@0c7b033 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* feat: remove workaround * regenerate client with workarounds removed --------- Co-authored-by: Anthonios Partheniou <partheniou@google.com>
) Source-Link: googleapis/synthtool@d6103f4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:39f0f3f2be02ef036e297e376fe3b6256775576da8a6ccb1d5eeb80f4c8bf8fb Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
From the spec:
This means when the
entity_value
is added we should setindexed
toFalse
on the property. (This is currently not easy, see #403, #404 and #512.)Or maybe we should just document that users need to add a property name to
exclude_from_indexes
if that property is anEntity
.To replicate:
and notice it doesn't fail if the property is correctly unindexed:
The text was updated successfully, but these errors were encountered: