allows to use excludeFromIndexes inside embedded Entities in datastore#741
allows to use excludeFromIndexes inside embedded Entities in datastore#741martianoff wants to merge 1 commit intogoogleapis:masterfrom
Conversation
…00 bytes limit error
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
I signed it! |
|
CLAs look good, thanks! |
|
I'm open to the value of what you are proposing, but your solution would prevent users from using |
|
@jdpedrie what if we will use following syntax? 'entityValue' => [
'properties' => [
'name' => 'some_field',
'value' => 'some_long_value',
],
'excludeFromIndexes' => ['name','value']
]but it will need more changes |
|
@maksimru what do you think about having Given this entity: An exclude could work like this: $entity->setExcludeFromIndexes([
'key',
['embeddedEntity', 'foo']
]); |
|
in that case i think more clear solution to use: $entity->setExcludeFromIndexes([
'key',
'embeddedEntity.foo',
'embeddedEntity.somearray[].foo',
'embeddedEntity2.*',
'somearray[].*'
]);similar task in node sdk googleapis/google-cloud-node#2510 and googleapis/google-cloud-node#2615 |
|
@maksimru, I'm going to close this in favor of #754. Thank you for bring this issue to our attention! Please take a look at that other PR and give me your thoughts. |
helps to avoid errors like
The value of property stringValue is longer than 1500 bytes.
simple use following style for embedded entities to avoid error: