-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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][broker] update rest endpoint method names to avoid swagger conflict #20359
Conversation
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.
Generally looks good. One cleanup comment below.
src/gen-swagger.sh
Outdated
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.
We can actually remove this file since the site repo is moved out to https://github.com/apache/pulsar-site.
And we write a similar script for generating swagger files: https://github.com/apache/pulsar-site/blob/main/tools/pytools/lib/execute/swagger_generator.py
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.
@tisonkun Thanks, I have removed the gen-swagger.sh script.
Renames two rest endpoint methods which were incorrectly named and cause an ID conflict in the generated swagger. This change also removes the gen-swagger.sh script which is no longer used. Signed-off-by: Paul Gier <paul.gier@datastax.com>
5dbf726
to
de866b7
Compare
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.
Thank you!
/pulsarbot rerun-failure-checks |
Codecov Report
@@ Coverage Diff @@
## master #20359 +/- ##
=============================================
+ Coverage 36.97% 72.90% +35.93%
- Complexity 12043 31759 +19716
=============================================
Files 1687 1864 +177
Lines 128760 138318 +9558
Branches 14003 15173 +1170
=============================================
+ Hits 47612 100845 +53233
+ Misses 74851 29465 -45386
- Partials 6297 8008 +1711
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Renames two rest endpoint methods which were incorrectly named and cause an ID conflict in the generated swagger.
This change also skips the license check when generating the swagger spec file.
Motivation
Swagger generation uses the method/function name for the ID of the endpoint. This causes problems downstream when trying to generate admin client sources based on the swagger.
Modifications
Changed two method names related to namespace endpoints that didn't match the endpoint. This does not affect the rest endpoints, just the method names backing them.
Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: pgier#10