-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat(dependencies)!: Upgrade to google-cloud-datastore 2.x #841
Conversation
2c7f3ae
to
0dcdec8
Compare
1fe5828
to
e61cafa
Compare
When are we thinking this will go out? I got a slew of pending tickets being held up by this PR :) |
This is the first version of google-cloud-datastore that does not support Python 3.6, which aligns it with our supported versions. Also upgrade some other minimum dependencies to align. BREAKING CHANGE: If you are using both the NDB and the base google-cloud-datastore classes in your codebase, you will have to update your use of those google-cloud-datastore classes. See https://github.com/googleapis/python-datastore/blob/main/UPGRADING.md for recommendations for upgrading to google-cloud-datastore 2.x. tweak deps
The new Datastore GRPC transport has different method naming conventions than the old stub did.
@rwhogg - why the minor version change on your |
@smittysmee we're treating this as a major change as the upgrade to the new major version of google-cloud-datastore may require code changes by users to adapt to it. (A user might be using both NDB and google-cloud-datastore directly in the same application for instance). This will also align NDB with google-cloud-datastore better; the major version of NDB will match the major version of google-cloud-datastore that it uses. https://github.com/googleapis/release-please will handle making a new major release for us 😺 |
@rwhogg et al, for simple ndb users who aren't also using google-cloud-datastore directly, do you have any other suggestions for how to test our compatibility with this upgrade? |
I'd recommend following the instructions from https://cloud.google.com/appengine/docs/standard/python3/migrating-to-cloud-ndb#testing and https://cloud.google.com/appengine/docs/standard/python3/migrating-to-cloud-ndb#deploying . |
It's working great so far! |
Fixes #804
BEGIN_COMMIT_OVERRIDE
feat(dependencies)!: Upgrade to google-cloud-datastore >= 2.7.2
fix: Update module imports
fix: Fix enum namespaces
fix: Update datastore stub creation
fix: Update API capitalization/casing
fix: Correct access to SerializeToString, CopyFrom, and MergeFromString
test: Fix tests
END_COMMIT_OVERRIDE
See the python-datastore upgrade guide for information on how to upgrade your own code that uses google-cloud-datastore 1.x