-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: protoc-gen-swagger: Implement Response Header(s) object, Implem… #1730
feat: protoc-gen-swagger: Implement Response Header(s) object, Implem… #1730
Conversation
In investigating the generate failure it is failing on the if I run through the pipeline steps locally
the following files are modified:
Prior to my inital commit I ran the following docker commands per the instructions: docker run -v $(pwd):/src/grpc-gateway --rm docker.pkg.github.com/grpc-ecosystem/grpc-gateway/build-env:1.15 \
/bin/bash -c 'cd /src/grpc-gateway && \
make realclean && \
make examples && \
make testproto'
docker run -itv $(pwd):/grpc-gateway -w /grpc-gateway --entrypoint /bin/bash --rm \
l.gcr.io/google/bazel -c '\
bazel run :gazelle -- update-repos -from_file=go.mod -to_macro=repositories.bzl%go_repositories && \
bazel run :gazelle && \
bazel run :buildifier' And then attached the updated files...from the error output though, it appears as if these other examples changes need to be checked in? |
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.
Hi Elijah, and thanks for your interest in the project! I've had a look over the changes and they mostly look good, a few style mistakes that I'm sure are just because you're unfamiliar with the Go best practices and tooling ecosystem.
There are a few more substantive comments but this looks great for a first stab at the issue.
examples/internal/clients/generateunboundmethods/.swagger-codegen/VERSION
Outdated
Show resolved
Hide resolved
@johanbrandhorst Thank you so much for the time you took to review my request! I have completed all recommended changes (all were done locally so it may still show that you have open requests changes). Please let me know if there is anything else that I can do 👍 |
Just a heads up Elijah, I've decided to freeze |
I've created the |
Hi @elijah-roberts, could you please rebase this on |
@johanbrandhorst I will work on this today 👍 |
…ent Field Enum,Example&Format attributes grpc-ecosystem#1729
* a bunch of whitespace/format changes... have since added this to my IDE * remove any.Any objects, and convert them to string * move runtime regex strings to global variables * update examples * update tests
8f1ae22
to
f4ed5a6
Compare
Codecov Report
@@ Coverage Diff @@
## v1 #1730 +/- ##
==========================================
+ Coverage 53.38% 53.89% +0.51%
==========================================
Files 42 42
Lines 3902 3963 +61
==========================================
+ Hits 2083 2136 +53
- Misses 1562 1566 +4
- Partials 257 261 +4
Continue to review full report at Codecov.
|
@johanbrandhorst I have rebased the current changes onto v1 and retargeted. can you review my comments here #1729 (comment). I should have the changes completed today or tomorrow and can either add them here, or create a new issue/pr. |
As I said in that issue, lets do that in a separate PR. I will take another look at this PR now. |
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.
Thanks for the updates, I left a few more comments.
protoc-gen-grpc-gateway/descriptor/grpc_api_configuration_test.go
Outdated
Show resolved
Hide resolved
* remove regex logic, and update functions to use simple booleans * cleanup example proto * enforce CanonicalMIMEHeaderKey for header name
simplifying string check Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
fix: remove string comparisons Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
@johanbrandhorst I appreciate your patience with me as I work through your suggestions! I believe that I have resolved all of your comments, if it is possible for you to take another look that would be awesome! |
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.
Thanks a lot for the work you've put into this Elijah 😄. Just a few last suggestions, we're almost there! It looks great.
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
* parse unsigned ints with strconv.ParseUint * update unqoute logic
@johanbrandhorst Thanks added those changes 👍 |
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.
Almost there 😂, just noticed a potential bug when using type: "integer"
and format: "uint64"
and value: math.MaxUint64
.
@johanbrandhorst This has been updated to include your requested changes... as well as adding test cases to validate. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
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.
Didn't want to waste your time any longer so I went and cleaned up the last few things I noticed on the last pass. This is good to go! Thank you for your patience! I'll tag a minor with this new feature :). Would you be happy to cherry pick this PR against master
as well? I think there'll be some conflicts and I could help sort them out, but it'd be great to have parity.
Thanks for your contribution 😄! |
@elijah-roberts would you mind cherry-picking this against the master branch so we can add this to v2 as well? |
Sure thing... I will put some time on my calender to do this, this week..
…On Mon, Nov 23, 2020 at 2:47 AM Johan Brandhorst-Satzkorn < ***@***.***> wrote:
@elijah-roberts <https://github.com/elijah-roberts> would you mind
cherry-picking this against the master branch so we can add this to v2 as
well?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1730 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEWT4BKU5LT5P27GHK246OLSRIVTRANCNFSM4SIIT7CA>
.
--
Elijah Roberts
Site Reliability Engineer
Cloud Solutions Architect
509-828-3776 | elijah@elijahjamesroberts.com
|
@johanbrandhorst created #1841 |
protoc-gen-swagger: Implement Response Header(s) object, Implement Field Enum,Example&Format attributes #1729
References to other Issues or PRs
#1729
Have you read the Contributing Guidelines?
Yes
Brief description of what is fixed or changed
I have implemented the following:
Other comments
Per the contributing guidelines I run the 2 docker commands, and attached the updated files to my PR