You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
entity.key.urlsafe does not return the same key as shown in google cloud datastore admin.
Below is an example of how this NDB library does read and get the same entity using the two different keys. user_b_key below , is the url-safe key show in google cloud datastore. user_a_key is the key generated by entity.urlsafe() for both entities (technically the same entity).
The key generated by entity.urlsafe() does not work on google cloud datastore console to look up an entity by key. There is an error saying *the project some-project does not exist. Except the first two letters of the project (app) name are chopped off.
Environment details
Datastore and ndb
OS X
python 3.7.3
google-cloud-datastore 1.10.0
Steps to reproduce
save an entity (with app engine standard v1 or v2 + this ndb lib)
entity.key.urlsafedoes not return the same key as shown in google cloud datastore admin.Below is an example of how this NDB library does read and
getthe same entity using the two different keys.user_b_keybelow , is the url-safe key show in google cloud datastore.user_a_keyis the key generated byentity.urlsafe()for both entities (technically the same entity).The key generated by
entity.urlsafe()does not work on google cloud datastore console to look up an entity by key. There is an error saying *the project some-project does not exist. Except the first two letters of the project (app) name are chopped off.Environment details
Steps to reproduce
urlsafeon (2) entityCode example
Stack trace