Uh oh!
There was an error while loading. Please reload this page.
feat(datastore): support setting a property indexed value - #218
Conversation
ac6f1d0 to
0eaac00Compare
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
0f68ccd to
108b7a3Comparesilvolu
commented
Sep 23, 2014
LGTM, other opinions on this change? |
pcostell
commented
Sep 24, 2014
Indexed is likely not the best way to describe this. In particular, its usage in many of the other APIs has caused confusion due to its interaction with composite indexes. What this flag really should indicate is that the specific value cannot be indexed (i.e. a blob or string that is too long). The Cloud Datastore API has changed this flag to "exclude_from_indexes" to make it more verbose. Something that is more readable could be something along the lines of "indexable". |
silvolu
commented
Sep 24, 2014
I think you're right. |
stephenplusplus
commented
Sep 24, 2014
To make sure I'm understanding, this PR would work the same way, we just want to change the term If that's correct... is a user providing a 500+ char string and using If that's not correct... would someone be able to write up a quick sample of what our api should look like and the effect that has on the resulting Please excuse my confusion! Also, should we handle 500+ char strings that are sent in without |
silvolu
commented
Sep 24, 2014
The problem that emerges from the issue linked by @pcostell is that the name Does it make sense? Regarding the throwing errors bit, I'd delegate that to the API backend and just make the call and report the error. Did you have a chance to check if the API error message is clear enough? |
stephenplusplus
commented
Sep 24, 2014
Thank you, I understand now. 💡 I'll update the PR later and get back with an answer on the API error message clarity. |
108b7a3 to
100e3eeComparestephenplusplus
commented
Sep 24, 2014
PTAL. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
stephenplusplus
commented
Sep 24, 2014
The API error we pass lgtm: {[Error: Thestringpropertyhihasavaluethatistoolong.Itcannotexceed500characters.]errors: [],code: 400,message: 'The string property hi has a value that is too long. It cannot exceed 500 characters.'}} |
pcostell
commented
Sep 25, 2014
Just to clarify a little when a user would want to use exclude_from_indexes:
|
100e3ee to
5d146eeComparestephenplusplus
commented
Sep 25, 2014
Thank you for helping me understand :) I've updated the PR with your wording improvements and also renamed |
5d146ee to
ae25416Compare
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ae25416 to
902aff9Compare
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
902aff9 to
cec4537Compare
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ryanseys
commented
Sep 27, 2014
Other than documentation notes, this LGTM. |
cec4537 to
75217d2Comparestephenplusplus
commented
Sep 29, 2014
PTAL |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
* Add some simple "quickstart" samples. * Add quickstart tests (#215) * First draft of new tests * Fix failing tests * Fix comments * Add comments. * Update comments. * Add another comment. * Cleanup. * Fix region tags. * Fix comments.
* Add some simple "quickstart" samples. * Add quickstart tests (#215) * First draft of new tests * Fix failing tests * Fix comments * Add comments. * Update comments. * Add another comment. * Cleanup. * Fix region tags. * Fix comments.
* Add some simple "quickstart" samples. * Add quickstart tests (#215) * First draft of new tests * Fix failing tests * Fix comments * Add comments. * Update comments. * Add another comment. * Cleanup. * Fix region tags. * Fix comments.
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/ba2d388f-b3b2-4ad7-a163-0c6b4d86894f/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@05de3e1
By default, property index values are set to
true, without allowingthe user to specify an override. Now, when a user passes in an array
to
dataset.save, they will have the option of settingtrueorfalse.Example:
Resolves: #208
Related: http://goo.gl/tKVvhP