GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Port Datastore onto GAPIC · Issue #2746 · googleapis/google-cloud-python

Port Datastore onto GAPIC #2746

New issue
Copy link
New issue
Copy link
Closed
Closed
Port Datastore onto GAPIC#2746
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@bjwatson
bjwatson
opened on Nov 17, 2016
Issue body actions

What

Port the gRPC code path for Datastore onto GAPIC. The package is available here.

Why

This is not a beta-blocker, since there already is gRPC code for Datastore, but it is preferred.

Activity

Next
  1. bjwatson
    added
    api: datastoreIssues related to the Datastore API.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Nov 17, 2016
  2. bjwatson
    assigned
    dhermes
    on Nov 17, 2016
  3. dhermes commented on Nov 17, 2016

    @dhermes
    dhermes
    on Nov 17, 2016
    Contributor
    More actions

    @bjwatson Two questions:

    1. Why doesn't the new package depend on google-gax>=0.15 (which has the new auth helpers)?
    2. Are we in a situation where some of the GAPIC packages depend on 0.13 <= google-gax < 0.14 while others depend on 0.14 <= google-gax < 0.15 (as this one does)?
  4. bjwatson commented on Nov 17, 2016

    @bjwatson
    bjwatson
    on Nov 17, 2016
    Author
    More actions

    @dhermes Only because @geigerj says that he needs to make some small updates to the GAPIC generator for it to be compatible with google-gax>=0.15. He might be able to get that done today, and then we can build all packages with the newer google-gax dependency.

    I thought I would get this in your hands right away, rather than waiting for the necessary fixes to support the newer auth helpers. However, if you think it's a more efficient use of your time to wait, then we can do that.

  5. dhermes commented on Nov 18, 2016

    @dhermes
    dhermes
    on Nov 18, 2016
    Contributor
    More actions

    @bjwatson Sorry I didn't notice this until now, but the current form of grpc-google-cloud-datastore-v1 can't run without gRPC. This means we can't get access to the protobufs without forcing grpc to be installed.

    Right now we support Protobuf-over-HTTP and Protobuf-over-gRPC, so we need access to the protobuf classes in use cases where gRPC isn't available (i.e. App Engine).

    The generated protobuf classes currently live in datastore._generated, which is how we import them. In order to support gRPC we have datastore_pb2.py and datastore_grpc_pb2.py in the _generated module

    /cc @jonparrott

  6. bjwatson commented on Nov 19, 2016

    @bjwatson
    bjwatson
    on Nov 19, 2016
    Author
    More actions

    @dhermes Does googleapis/api-client-staging@6649c45 do what you need? Do you also need changes to setup.py? I see that your setup.py depends on grpcio regardless.

    Note that this will become unnecessary once grpc/grpc#8056 is released in grpcio==1.1.0.

  7. dhermes commented on Nov 21, 2016

    @dhermes
    dhermes
    on Nov 21, 2016
    Contributor
    More actions

    Yes it does do what I had in mind.

    We had conditional checks in our setup.py, but @jonparrott discouraged that since it confuses wheel building. But maybe I am wrong on how I remember that.

    AFAIK, even though grpcio is in our setup.py for packages like google-cloud-datastore, it doesn't stop from installing into a lib/ dir in an App Engine app. @jonparrott can confirm or deny or throw his hands up in sadness over packaging?

  8. theacodes commented on Nov 21, 2016

    @theacodes
    theacodes
    on Nov 21, 2016
    Contributor
    More actions

    grpcio will indeed be vendored into lib for app engine and explode on import.

  9. dhermes commented on Nov 21, 2016

    @dhermes
    dhermes
    on Nov 21, 2016
    Contributor
    More actions

    @bjwatson Ping me once released?

  10. geigerj commented on Nov 21, 2016

    @geigerj
    geigerj
    on Nov 21, 2016
    Contributor
    More actions

    @bjwatson Is this a Datastore-specific hand-edit, or do we intend to provide these conditional imports across the gRPC packages we maintain? If it's the latter, we should figure out what the timeline for grpcio 1.1.0 is and whether we need to automate this in our tooling.

  11. dhermes commented on Nov 21, 2016

    @dhermes
    dhermes
    on Nov 21, 2016
    Contributor
    More actions

    @geigerj @bjwatson We would love to see a new release of grpcio because of grpc/grpc#7849, so I am on team "pushing for release"

    Reacted by Thomas Schultz
  12. bjwatson commented on Nov 30, 2016

    @bjwatson
    bjwatson
    on Nov 30, 2016
    Author
    More actions

    @dhermes We're going to wait on porting Datastore to GAPIC until after the beta announcement. We discussed and we don't want to take any chances on destabilizing the google-cloud-python code for the four APIs. The only one that will go beta with GAPIC is Logging.

  13. dhermes commented on Dec 2, 2016

    @dhermes
    dhermes
    on Dec 2, 2016
    Contributor
    More actions

    SGTM

  14. dhermes
    added a commit that references this issue on Feb 23, 2017

    Making datastore Connection.commit() return low-level protobuf.

    56f12dd
  15. 18 remaining items

  16. lukesneeringer commented on Mar 17, 2017

    @lukesneeringer
    lukesneeringer
    on Mar 17, 2017
    Contributor
    More actions

    Sure, but it is a huge under-the-hood change, because those with GRPC support are suddenly using the GRPC transport now.

  17. dhermes commented on Mar 17, 2017

    @dhermes
    dhermes
    on Mar 17, 2017
    Contributor
    More actions

    @lukesneeringer We already had the gRPC transport (for many releases), it was just the raw stub produced by the protoc plugin rather than the DatastoreClient which wraps that very same class.

  18. lukesneeringer commented on Mar 20, 2017

    @lukesneeringer
    lukesneeringer
    on Mar 20, 2017
    Contributor
    More actions

    Okay.

  19. richkadel
    added 5 commits that reference this issue on May 6, 2017

    Making datastore Connection.run_query() return low-level protobuf.

    222d08c

    Making datastore Connection.commit() return low-level protobuf.

    4d6c400

    Moving _request and _rpc off the datastore HTTP helper.

    9cdec15

    Moving datastore host configuration into Client.

    869f4d6

    Restoring datastore Gax exception re-mapping.

    72e5c59
  20. theacodes
    unassigned
    dhermes
    on Sep 28, 2018
  21. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  22. parthea
    added 5 commits that reference this issue on Nov 24, 2025

    Making datastore Connection.run_query() return low-level protobuf.

    449c52c

    Making datastore Connection.commit() return low-level protobuf.

    ed9dbb5

    Moving _request and _rpc off the datastore HTTP helper.

    b040cf1

    Moving datastore host configuration into Client.

    55e0e49

    Restoring datastore Gax exception re-mapping.

    4bab277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: datastoreIssues related to the Datastore API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.