-
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
Address sixth part of 451: Implement Key.compare_to_proto to check pb keys against existing. #462
Conversation
031b864 comments inline on the changeset. |
031b864
to
1778430
Compare
RE: "Why not pass RE: "Calling RE: "Replicating code from RE: "Server completion of a partial key". ISTM the server will always complete with an ID, hence the name |
As I look at this more I wonder why In some sense, we want to check that the entire returned key matches but in another sense, we should trust that the backend has preserved everything except the missing final ID. @tseaver WDYT? |
I'd prefer not to return the protobuf, and I really don't like the "type variant" return signature. Could we have
|
Addresses sixth part of googleapis#451.
1778430
to
cc59310
Compare
Good call. On it. |
Travis failure: rename to |
Making Connection.save_entity return the auto allocated ID instead of the entire PB.
Removed @tseaver PTAL |
Address sixth part of 451: Implement Key.compare_to_proto to check pb keys against existing.
@dhermes the server will always complete keys when the entity is part of insert_with_auto_id. Otherwise, it will not complete it. If something bad happens the server will throw an error (rather than return an incomplete key). |
Co-authored-by: AJ Morozoff <amorozoff@google.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: AJ Morozoff <amorozoff@google.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: AJ Morozoff <amorozoff@google.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
* fix(deps): allow protobuf 3.19.5 * explicitly exclude protobuf 4.21.0
Source-Link: googleapis/synthtool@4760d8d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: https://togithub.com/googleapis/synthtool/commit/30bd01b4ab78bf1b2a425816e15b3e7e090993dd Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9bc5fa3b62b091f60614c08a7fb4fd1d3e1678e326f34dd66ce1eefb5dc3267b
…[autoapprove] (#462) Source-Link: googleapis/synthtool@1f37ce7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8e84e0e0d71a0d681668461bba02c9e1394c785f31a10ae3470660235b673086
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
…eIamPolicies API (#462) * feat: Add client library support for AssetService v1 BatchGetEffectiveIamPolicies API Committer: haochunzhang@ PiperOrigin-RevId: 466134014 Source-Link: googleapis/googleapis@63c73fb Source-Link: googleapis/googleapis-gen@2350945 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjM1MDk0NWY3YTcwZWNhYWVjZjlhMWZkZDdkNmU3MGFjNTBlODYyZCJ9 * 🦉 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: AJ Morozoff <amorozoff@google.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Addresses sixth part of #451.
NOTE: This has #461 as a diffbase.