-
Notifications
You must be signed in to change notification settings - Fork 598
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
datastore: update to v1beta3 #897
datastore: update to v1beta3 #897
Conversation
ffee9e4
to
95e9fa4
Compare
@@ -136,7 +135,7 @@ nodeutil.inherits(Dataset, DatastoreRequest); | |||
* @param {string=} options.apiEndpoint - Custom API endpoint. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Thanks for the review @pcostell! I'll be making some adjustments throughout the week and will ping if I have any questions. |
No worries -- one more note, the url has changed. So for example for runQuery it is now:
|
|
||
var reqOpts = { | ||
method: 'POST', | ||
uri: format('{apiEndpoint}/{path}/{projectId}/{method}', { | ||
uri: format('{apiEndpoint}/v1beta3/projects/{projectId}:{method}', { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
94f286c
to
3f3cacc
Compare
f7575e8
to
3837260
Compare
Is v1beta3 generally available? I've been using the response code of https://cloud.google.com/datastore/docs/apis/v1beta3 to tell me if it's live or not, and it's still a 404. |
The docs and blog post won't drop until Monday, however the API can be enabled: https://console.cloud.google.com/apis/api/datastore.googleapis.com/overview |
For users that already have Datastore enabled and have been running v1beta2, they won't have to re-enable the API, right? |
Any projects active in the last 7 days will not need to re-enable. |
Cool, thanks. And more generally, thanks for all of the help along the way! 👍 |
Thank you for helping us get this out the door! As a heads up, the cloud SDK will not have a grpc emulator at launch time. So users that want to use gcloud-node will have to use the gcd.sh tool directly, which they can get from here. |
Release notes for Datastore available if you need to link to them: https://cloud.google.com/datastore/release-notes |
* @param {number} value - The double value. | ||
* | ||
* @example | ||
* var aDouble = new Double(7.3); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
d579d4e
to
7842ea1
Compare
@callmehiphop - all squashed. |
7842ea1
to
2a2aa3f
Compare
This reverts commit f686198.
2a2aa3f
to
83cf80f
Compare
🎉 |
@pcostell any API flakiness going on? We are having inconsistent results querying for data: Commit: {
"mutations": [
{
"upsert": {
"key": {
"path": [
{
"kind": "Person",
"name": "name"
}
]
},
"properties": {
"f": {
"stringValue": "Full name"
}
}
}
}
],
"projectId": "nth-circlet-705",
"mode": "NON_TRANSACTIONAL"
} Query: {
"readOptions": {},
"query": {
"distinctOn": [],
"kind": [
{
"name": "Person"
}
],
"order": [],
"projection": [],
"filter": {
"compositeFilter": {
"filters": [
{
"propertyFilter": {
"property": {
"name": "f"
},
"op": "EQUAL",
"value": {
"stringValue": "Full name"
}
}
}
],
"op": "AND"
}
}
},
"projectId": "nth-circlet-705"
} Sometimes the query returns the entity, other times it doesn't. Is there anything we're doing wrong? |
@stephenplusplus That looks like standard Eventual Consistency. For any e2e tests that require a get and a query you should be using ancestors. |
I'm getting it with that as well: Commit: {
"mutations": [
{
"upsert": {
"key": {
"path": [
{
"kind": "People",
"name": "US"
},
{
"kind": "Person",
"name": "name"
}
]
},
"properties": {
"f": {
"stringValue": "Full name"
}
}
}
}
],
"projectId": "nth-circlet-705",
"mode": "NON_TRANSACTIONAL"
} Query {
"readOptions": {},
"query": {
"distinctOn": [],
"kind": [
{
"name": "Person"
}
],
"order": [],
"projection": [],
"filter": {
"compositeFilter": {
"filters": [
{
"propertyFilter": {
"property": {
"name": "f"
},
"op": "EQUAL",
"value": {
"stringValue": "Full name"
}
}
}
],
"op": "AND"
}
}
},
"projectId": "nth-circlet-705"
} Maybe I'm not understanding how to save and/or query using ancestors? |
Sorry, I got it using |
Cool, let me know if there are any other issues |
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 408439482 Source-Link: googleapis/googleapis@b9f6184 Source-Link: googleapis/googleapis-gen@eb888bc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
Fixes #872
Fixes #1049
Fixes #1181
Docs
http://stephenplusplus.github.io/gcloud-node/#/docs/master/datastore
Blockers
To Dos
Update resource links (blocked by v1beta3's release (public docs required to get URLs))DATASTORE_PROJECT_ID
DATASTORE_EMULATOR_HOST
(protocol not included)Dataset isn't a thing anymore:
Before
After