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

fix(AIP-133): use resource field in signature suggestion #1439

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

noahdietz
Copy link
Collaborator

Fix the way that the expected resource field name is derived for Standard Create method_signatures. When the resource field in the request message uses a name that doesn't exactly mirror the resource type/RPC name, the previous logic suggested a method_signature including a field that didn't exist. Since this rule isn't supposed to also govern the field's name itself, just roll with it.

Also fixes the way the output type is evaluated for the resource parent/no-parent case when the response type is an Operation.

Moves the LRO test to its own case.

Addresses internal feedback http://b/372508475

@noahdietz noahdietz requested a review from a team as a code owner October 22, 2024 01:41
Copy link

@jskeet jskeet left a comment

Choose a reason for hiding this comment

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

I can't say I follow all the go aspects, but the tests look fine to me.

rules/aip0133/method_signature_test.go Outdated Show resolved Hide resolved
Co-authored-by: Sam Levenick <slevenick@google.com>
@noahdietz noahdietz added the automerge Summon MOG for automerging label Oct 22, 2024
@noahdietz noahdietz merged commit 20c96b6 into googleapis:main Oct 22, 2024
5 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Summon MOG for automerging label Oct 22, 2024
@noahdietz noahdietz deleted the fix-create-signature branch October 22, 2024 15:48
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.

3 participants