-
Notifications
You must be signed in to change notification settings - Fork 133
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
Dataset ID aliases don't behave consistently. #59
Comments
Addresses seventh part of googleapis#451. Also requires removing the dataset_id from generated protobufs due to googleapis/google-cloud-datastore#59. This occurs also in __key__ filters and ancestor queries.
Thanks for the report -- we are planning on fixing this in a future version of the API. In the mean time, leaving |
Addresses seventh part of googleapis#451. Also requires removing the dataset_id from generated protobufs due to googleapis/google-cloud-datastore#59. This occurs also in __key__ filters and ancestor queries.
Addresses seventh part of googleapis#451. Also requires removing the dataset_id from generated protobufs due to googleapis/google-cloud-datastore#59. This occurs also in __key__ filters and ancestor queries.
Addresses seventh part of googleapis#451. Also requires removing the dataset_id from generated protobufs due to googleapis/google-cloud-datastore#59. This occurs also in __key__ filters and ancestor queries.
Addresses seventh part of googleapis#451. Also requires removing the dataset_id from generated protobufs due to googleapis/google-cloud-datastore#59. This occurs also in __key__ filters and ancestor queries.
Addresses seventh part of googleapis#451. Also requires removing the dataset_id from generated protobufs due to googleapis/google-cloud-datastore#59. This occurs also in __key__ filters and ancestor queries.
@eddavisson @pcostell Do you have an idea of when this might land? |
@pcostell will this be addressed in |
Yes. |
w00t! |
Per https://cloud.google.com/datastore/release-notes, in |
Using the "human-readable" version
foo
of the prefixed IDs~foo
(ore~foo
) is allowed in a URI but not in a request payload (and will never be returned in a response sincefoo
gets mapped tos~foo
in the response).This inconsistency can catch user's off-guard and requires custom behavior in
to_protobuf()
-type methods which essentially always ignore thedataset_id
on aPartitionId
message and only use the dataset ID in the URI./cc @silvolu @tseaver
Some examples
which has
RunQueryRequest.partition_id.dataset_id == 'foo'
in the payload results inwhich has
Key.partition_id.dataset_id == 'foo'
(either directly in a keyor in an
Entity
) in the payload results inRunQueryRequest.partition_id.dataset_id
set in the payload but does havethe dataset ID set in either the ancestor key
or in the
__key__
filterThe text was updated successfully, but these errors were encountered: