-
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: decouple comet from modules #21382
Conversation
WalkthroughWalkthroughThe changes involve the removal of deprecated features related to historical information querying in the staking module, including associated types, methods, and tests. The Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant StakingModule
participant SimApp
participant MockRPC
Client->>StakingModule: Request for validator info
StakingModule->>SimApp: Call ExportAppStateAndValidators
SimApp->>MockRPC: Use NewMockCometRPCWithResponseQueryValue
MockRPC-->>SimApp: Return validator data
SimApp-->>StakingModule: Return processed validators
StakingModule-->>Client: Send validator info response
Recent review detailsConfiguration used: .coderabbit.yml Files selected for processing (2)
Files skipped from review as they are similar to previous changes (1)
Additional context usedPath-based instructions (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
x/auth/ante/testutil_test.go (1)
119-119
: Changes to the test suite setup look good!The modifications to the
WithClient
method's argument and the removal of theabci
import suggest a shift in the mock client setup and a move towards reducing direct dependencies.These changes likely affect the behavior of the tests by altering the expected response structure. It would be helpful to understand the rationale behind these changes and any additional context.
Could you please provide some insights into the motivation behind these changes and how they impact the overall test suite? This will help maintain a clear understanding of the test setup for future reference.
Review details
Configuration used: .coderabbit.yml
Review profile: CHILL
Files selected for processing (6)
- x/auth/ante/testutil_test.go (2 hunks)
- x/bank/go.mod (1 hunks)
- x/feegrant/go.mod (2 hunks)
- x/gov/go.mod (1 hunks)
- x/group/go.mod (2 hunks)
- x/staking/go.mod (1 hunks)
Files skipped from review due to trivial changes (3)
- x/feegrant/go.mod
- x/gov/go.mod
- x/staking/go.mod
Files skipped from review as they are similar to previous changes (2)
- x/bank/go.mod
- x/group/go.mod
Additional context used
Path-based instructions (1)
x/auth/ante/testutil_test.go (2)
Pattern
**/*.go
: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.
Pattern
**/*_test.go
: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"
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.
love the cleanup
(cherry picked from commit 1d4ecd5) # Conflicts: # api/cosmos/staking/v1beta1/query.pulsar.go # api/cosmos/staking/v1beta1/query_grpc.pb.go # api/cosmos/staking/v1beta1/staking.pulsar.go # x/feegrant/go.mod # x/group/go.mod # x/staking/go.mod
We actually need to revert the proto breakage here, due to the breakage in api. |
gotcha i'll add it back |
Description
Figure already did for gov, so let just clean up other module as well, i'll make different PR for gov audit
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...
!
in 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.
Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.
I have...
Summary by CodeRabbit
New Features
GenesisValidator
struct for improved validator data representation.Bug Fixes
Documentation
go.mod
files to clarify indirect dependencies.Refactor