-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(auth): Remove IterateAccounts method from x/auth keeper #19363
Conversation
Warning Rate Limit Exceeded@testinginprod has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 24 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe changes focus on enhancing error handling and account iteration within the authentication module. The refactoring involves replacing Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yml
Files selected for processing (9)
- tests/integration/gov/genesis_test.go (1 hunks)
- x/auth/keeper/account.go (2 hunks)
- x/auth/keeper/genesis.go (3 hunks)
- x/auth/keeper/keeper.go (1 hunks)
- x/auth/keeper/keeper_test.go (4 hunks)
- x/auth/module.go (1 hunks)
- x/bank/types/expected_keepers.go (1 hunks)
- x/genutil/types/expected_keepers.go (1 hunks)
- x/staking/types/expected_keepers.go (1 hunks)
Files skipped from review due to trivial changes (1)
- x/auth/keeper/keeper.go
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 we get an api breaking changelog in x/auth/changelog please?
Will add, was testing CI for failures since I get nothing locally but a lot of things break on CI .. :\ |
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yml
Files selected for processing (1)
- x/slashing/types/expected_keepers.go (1 hunks)
Additional comments: 4
x/slashing/types/expected_keepers.go (4)
- 15-20: > 📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [12-14]
The
AccountKeeper
interface no longer includesIterateAccounts
, aligning with the PR's objective to streamline account iteration. Ensure all implementations and usages ofAccountKeeper
across the Cosmos SDK are updated to reflect this change.
- 15-20: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [15-49]
The remaining methods in
AccountKeeper
andBankKeeper
interfaces are unaffected by the removal ofIterateAccounts
. Confirm that the removal does not impact the logic or functionality of these methods indirectly, especially in modules that might have relied on account iteration for certain operations.
- 15-20: > 📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [50-92]
The
StakingKeeper
interface remains unchanged in this file. Verify that the removal ofIterateAccounts
fromAccountKeeper
does not affect any staking-related operations, particularly those that might involve account information or iteration indirectly.
- 15-20: > 📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [93-109]
The
StakingHooks
interface is also unaffected directly by the removal ofIterateAccounts
. However, ensure that any logic within the staking module that might have depended on account iteration throughAccountKeeper
is reviewed and updated as necessary.
Description
Removes IterateAccounts + GetAllAccounts methods from the AccountKeeper interface and Keeper. So when we add x/accounts support we do not need to merge x/accounts and auth accounts together.
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.
I have...
Summary by CodeRabbit
Refactor
Tests
Chores