Skip to content
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

chore: add template for metadata #2253

Merged
merged 4 commits into from
Nov 19, 2024
Merged

chore: add template for metadata #2253

merged 4 commits into from
Nov 19, 2024

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Nov 19, 2024

Towards #2250

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Nov 19, 2024
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 19, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 19, 2024
@parthea parthea marked this pull request as ready for review November 19, 2024 16:03
@parthea parthea requested a review from a team as a code owner November 19, 2024 16:03
@@ -631,7 +631,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
{{ shared_macros.client_method_metadata_argument()|indent(8) }} = {{ shared_macros.client_method_metadata_default_value() }},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think these macros are no longer used and are adding a toil to whenever a change needs to be made to the client methods i.e. see the linked comment above.

I'd suggest to get rid of these macros.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I filed #2255 for this clean up step. We still need to remove usage here: https://github.com/search?q=repo%3Agoogleapis%2Fgoogleapis%20add-iam-methods&type=code

@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Nov 19, 2024
This reverts commit a06fdae.
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Nov 19, 2024
@parthea parthea merged commit 5a37094 into main Nov 19, 2024
85 checks passed
@parthea parthea deleted the refactor-metadata branch November 19, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants