-
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!: Remove sdk.Router and refactor baseapp tests #13005
Conversation
Codecov Report
@@ Coverage Diff @@
## main #13005 +/- ##
==========================================
- Coverage 55.87% 53.43% -2.45%
==========================================
Files 646 647 +1
Lines 54895 55083 +188
==========================================
- Hits 30675 29434 -1241
- Misses 21762 23307 +1545
+ Partials 2458 2342 -116
|
…-sdk into facu/remove-router
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.
utACK, do we feel like base app is sufficiently tested with this?
In terms of coverage, this PR increases it by 0.1%; so no difference. I basically took most tests and converted them, only leaving out what was testing the router specifically. |
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.
Nice! 🎉
@@ -367,17 +364,6 @@ func (app *BaseApp) setIndexEvents(ie []string) { | |||
} | |||
} | |||
|
|||
// Router returns the legacy router of the BaseApp. | |||
func (app *BaseApp) Router() sdk.Router { |
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 probably should have added an API-breaking changelog for this baseapp removal
@@ -149,7 +147,6 @@ func NewBaseApp( | |||
db: db, | |||
cms: store.NewCommitMultiStore(db), | |||
storeLoader: DefaultStoreLoader, | |||
router: NewRouter(), | |||
queryRouter: NewQueryRouter(), |
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.
Looking at this, the legacy query router can also be removed, since #12725. @facundomedica would you like to take care of this too?
Description
Closes: #12802
Closes: #12803
Note to reviewers: I had to split some tests between
baseapp
andbaseapp_test
because of 1. cyclic deps, 2. needed access to unexported fields.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