GeezerVison is showing github.com — feat(generator): add model flag and allowlist parser for resumable upload RPCs by whowes · Pull Request #14317 · googleapis/google-cloud-java
feat(generator): add model flag and allowlist parser for resumable upload RPCs
#14317
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.
The reason will be displayed to describe this comment to others. Learn more.
The RESUMABLE_UPLOAD_ALLOWLIST_PATTERNS list is currently empty, which means no RPCs will ever be identified as resumable uploads by the parser. To make this functional and testable, we should add the showcase service's pattern to this list. This also allows us to write a proper assertion in ParserTest and avoid the manual workaround in TestProtoLoader.
There was an error while loading. Please reload this page.
Copy link
Copy Markdown
ContributorAuthor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My main motivation here is so that we can generate the showcase ResumableUploadService client library cleanly without resumable upload support (#14324) followed immediately by the regeneration with support added via being allowlisted (#14325). IMO the diff on the latter PR gives a clear rollup overview of the resumable upload changes across the client library that's much easier to review than if the whole generation was bundled together, and adds value that we don't get from just the diffs we see in the individual composer PRs.
I originally tried to do the baseline generation earlier followed by allowlisting (before the composer changes) but I couldn't get it to work across intermediate PRs with both verify.sh working AND the generated library compiling. So keeping the allowlist empty until all composers are in place is was what I landed on.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
blakeli0 reacted with thumbs up emoji
All reactions
👍1 reaction
// Allow other parsers to access this.
protected static final SourceCodeInfoParser SOURCE_CODE_INFO_PARSER = new SourceCodeInfoParser();
Method has 10 parameters, which is greater than 7 authorized.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-cloud-java_generator&issues=AaCRiFteAssgigl7pfvH&open=AaCRiFteAssgigl7pfvH&pullRequest=14317
The reason will be displayed to describe this comment to others. Learn more.
I see that there is only one RPC in this service, which is OK as a starting point. In the follow up PRs, we should have a regular RPC in the same service to verify that the regular RPC is not generated in the resumable upload stub and vice versa.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
All reactions
option (google.api.http) = {
post: "/v1beta1/files:upload"
body: "*"
};
}
}
message UploadMediaRequest {
string name = 1;
}
message UploadMediaResponse {
string name = 1;
int64 size = 2;
}
Loading
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.