feat(datastore): add support for request tags - #13732
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces support for passing and merging RequestOptions (such as request tags) in Datastore queries and aggregation queries, allowing both instance-level and request-level tags to be propagated. The feedback highlights a critical issue where instance-level tags are ignored when query-level RequestOptions are not explicitly provided in QueryResultsImpl and AggregationQueryRequestProtoPreparer. Additionally, the reviewer suggests simplifying the varargs withRequestTags overload in Datastore by delegating to the List version, and adding a test case to verify that instance-level tags are correctly populated and sent with queries.
f124116 to
aab1fd3
Compare
|
ci / lint is failing. Could you please take a look? |
Fixed |
d61b477 to
75e872b
Compare
We are planning to do a public preview of supporting request tags , the backend changes are already enabled. Should I create a separate bug for doing what you suggested? |
Sure, I think that also works. We don't need to encourage people to use the new variants until they stabilize. In that case, I think it may also be worthwhile to add |
|
Changes generally LGTM, added some small comments. Please also let @jinseopkim0 another chance to review and I'll be fine to approve |
d3a5393 to
04a178a
Compare
9efbab9 to
c0b0c8d
Compare
acd9d7e to
57f258d
Compare
lqiu96
left a comment
There was a problem hiding this comment.
LGTM, thanks for the changes and working with us on this!
… in DatastoreImpl
23340cc to
6fa4151
Compare
1a30ae5 to
99f6374
Compare
|
Last lint issue: |
This PR introduced sending request tags for different datastore requests. The tags can be passed using 2 mechanisms: