-
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
refactor: helper method for register swagger api #12352
refactor: helper method for register swagger api #12352
Conversation
0a3e883
to
e6853f4
Compare
…d-for-RegisterSwaggerAPI
e6853f4
to
b42e3e9
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.
I don't personally like the idea of Swagger existing in BaseApp. I'm sure we can move this somewhere else, perhaps the server
package.
Also, let's be sure to get a changelog entry for this too.
@alexanderbez I've moved the RegisterSwaggerAPI function to the server package, and added a changelog for the same. |
Do we still need this go import in // unnamed import of statik for swagger UI support
_ "github.com/cosmos/cosmos-sdk/client/docs/statik"` Nit: Maybe the file name should just be |
@julienrbrt I've removed the import and changed the filename to |
|
||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/gorilla/mux" | ||
"github.com/rakyll/statik/fs" |
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 don't need the _ "github.com/cosmos/cosmos-sdk/client/docs/statik"
import?
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.
I think so, I removed it since you'd mentioned it here. Do you think its needed?
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.
I meant moving it back to another package. Have you tested this locally?
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.
bump @deepto98 :)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
abci "github.com/tendermint/tendermint/abci/types" | ||
"github.com/tendermint/tendermint/libs/log" | ||
tmos "github.com/tendermint/tendermint/libs/os" | ||
dbm "github.com/tendermint/tm-db" | ||
|
||
"github.com/cosmos/cosmos-sdk/depinject" | ||
"github.com/cosmos/cosmos-sdk/server" |
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.
Can you group the imports :)
Co-authored-by: Julien Robert <julien@rbrt.fr>
Codecov Report
@@ Coverage Diff @@
## main #12352 +/- ##
==========================================
+ Coverage 65.16% 65.19% +0.03%
==========================================
Files 692 693 +1
Lines 70837 70836 -1
==========================================
+ Hits 46158 46179 +21
+ Misses 22109 22086 -23
- Partials 2570 2571 +1
|
Hey @deepto98, this is almost ready to get merged 🙂. Can you implement the last two comments?
|
Okay, sure. Was a bit busy the past few days, will do these. |
No worries, thank you!! 👍🏾 |
@julienrbrt want to take over this pr. we can close and reopen from a non fork |
@alexanderbez or @facundomedica could you push the pr across the finish line |
what is left? It seems @julienrbrt gave a thumps up so I think he's got it? If not, I can take a stab at it. |
Replaced by #12955 |
Description
Closes: #12149
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change