Skip to content

feat: add apiVersion to x-goog headers #1576

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

Merged
merged 13 commits into from
Apr 30, 2024
Merged

feat: add apiVersion to x-goog headers #1576

merged 13 commits into from
Apr 30, 2024

Conversation

sofisl
Copy link
Contributor

@sofisl sofisl commented Apr 19, 2024

see https://docs.google.com/document/d/1ZOrybNB1BUFCFzykqzLuhwL9HHqn0fJV6ZizhVEROxs/edit?tab=t.0

I've manually regenerated showcase and confirmed the headers are sent correctly, as described in the doc above.

@sofisl sofisl requested review from a team as code owners April 19, 2024 01:23
opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')});
opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')
{%- if service.apiVersion -%}
, 'x-goog-api-version': '{{ service.apiVersion }}'
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like this change is not covered by baselines, so if it stops working for whatever reason, we won't be able to catch it. Should we add the corresponding annotation to at least one baseline service?

Copy link

snippet-bot bot commented Apr 29, 2024

Here is the summary of possible violations 😱

There are 2 possible violations for not having product prefix.

The end of the violation section. All the stuff below is FYI purposes only.


Here is the summary of changes.

You are about to add 2 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@sofisl
Copy link
Contributor Author

sofisl commented Apr 29, 2024

I've added the updated protos from here: https://github.com/googleapis/gax-nodejs/blob/main/gax/test/showcase-echo-client/protos/google/showcase/v1beta1/echo.proto

So the generated code includes lots of changes that have already been included in the generator, but weren't updated due to old protos.

@sofisl sofisl merged commit 2ed5cbb into main Apr 30, 2024
25 of 26 checks passed
@sofisl sofisl deleted the addApiVersionToHeaders branch April 30, 2024 03:02
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.

2 participants