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

feat: Add rules for AIP-164 Undelete #676

Merged
merged 4 commits into from
Oct 14, 2020
Merged

feat: Add rules for AIP-164 Undelete #676

merged 4 commits into from
Oct 14, 2020

Conversation

apasel422
Copy link
Contributor

Fixes #666, #667, #668.

@apasel422 apasel422 requested a review from a team October 13, 2020 19:46
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 13, 2020
@lukesneeringer lukesneeringer changed the title Add rules for AIP-164 Undelete feat: Add rules for AIP-164 Undelete Oct 13, 2020
docs/rules/0164/http-body.md Outdated Show resolved Hide resolved
docs/rules/0164/http-body.md Outdated Show resolved Hide resolved
for _, test := range tests {
t.Run(test.testName, func(t *testing.T) {
// Create a MethodOptions with the annotation set.
opts := &dpb.MethodOptions{}
Copy link
Contributor

Choose a reason for hiding this comment

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

I am surprised you went this route and not testutils.ParseProto3Tmpl, but it is fine as it is.

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 just copied it from one of the other tests that was similar. It'd be good at some point to upgrade all the tests to use ParseProto3Tmpl.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, that makes sense. Yeah, I wrote about 20 or so rules before writing ParseProto3Tmpl, which required me to get a change in to the underlying protoreflect library.

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 really miss g4 cp in GitHub's PR UI, to make these changes more obvious.

@lukesneeringer lukesneeringer merged commit 65b74c9 into googleapis:master Oct 14, 2020
@apasel422 apasel422 deleted the undelete branch October 14, 2020 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AIP-164: Undelete methods must contain name.
2 participants