Skip to content

feat(datastore): add support for request tags#13732

Open
rahulmane-goog wants to merge 4 commits into
googleapis:mainfrom
rahulmane-goog:feat-datastore-request-tags
Open

feat(datastore): add support for request tags#13732
rahulmane-goog wants to merge 4 commits into
googleapis:mainfrom
rahulmane-goog:feat-datastore-request-tags

Conversation

@rahulmane-goog

Copy link
Copy Markdown
  • Add RequestOptions support that enables ability of passing request tags to Datastore queries.
  • Introduced instance level request tags in the DatastoreOptions.
  • Introduced the logic of populating RequestOptions for all datastore queries. These are query level tags.
  • Introduced overloaded run(...) and runAggregation(...) client methods, that pass RequestOptions proto as the last parameter.
  • The instance and query level tags are combined using the new RequestOptionsHelper utility and sent inside the query requests.

@rahulmane-goog rahulmane-goog requested review from a team as code owners July 13, 2026 13:26

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@rahulmane-goog rahulmane-goog force-pushed the feat-datastore-request-tags branch from f124116 to aab1fd3 Compare July 13, 2026 13:43

@rahulmane-goog rahulmane-goog left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review

@lqiu96 lqiu96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 13, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 13, 2026
@jinseopkim0

Copy link
Copy Markdown
Contributor

ci / lint is failing. Could you please take a look?

@rahulmane-goog

Copy link
Copy Markdown
Author

ci / lint is failing. Could you please take a look?

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants