-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/action list by creator #81
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
Conversation
I've reviewed the latest changes (commit
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
e716e62 to
040fe02
Compare
afba78d to
9d68129
Compare
b5a8896 to
8dc78a1
Compare
8dc78a1 to
144fd0f
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.
Pull request overview
This PR adds a new ListActionsByCreator query endpoint to fetch actions by creator address, along with improvements to pagination logic and supernode lookup across several existing query implementations.
Key Changes
- Added new
ListActionsByCreatorgRPC/REST query with pagination support and corresponding test coverage - Refactored pagination logic in action queries to use
FilteredPaginateconsistently and properly handle filtering - Added
GetSuperNodeByAccountmethod to improve supernode lookups by account address - Enhanced autocli configuration with comprehensive query command descriptors
- Added
Totalfield to query responses for better pagination information
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
proto/lumera/action/v1/query.proto |
Added ListActionsByCreator RPC definition with request/response messages |
x/action/v1/types/query.pb.go |
Generated protobuf code for new query types and updated descriptor indices |
x/action/v1/types/query.pb.gw.go |
Generated gRPC-gateway handlers for new REST endpoint |
x/action/v1/types/action.pb.go |
Reformatted imports (cosmetic change) |
x/action/v1/keeper/query_list_actions_by_creator.go |
Implemented new query handler using creator index for efficient lookups |
x/action/v1/keeper/query_list_actions_by_creator_test.go |
Added comprehensive test coverage for the new query including edge cases |
x/action/v1/keeper/query_list_actions.go |
Refactored to use state index when filtering by state for better performance |
x/action/v1/keeper/query_list_actions_by_sn.go |
Improved pagination logic and added Total field to response |
x/action/v1/keeper/query_list_actions_by_block_height.go |
Improved pagination logic and added Total field to response |
x/action/v1/keeper/query_list_expired_actions.go |
Improved pagination logic and added Total field to response |
x/action/v1/keeper/action.go |
Minor refactoring of index management code (inline error checks) |
x/action/v1/module/autocli.go |
Added comprehensive autocli command descriptors for all query endpoints |
x/supernode/v1/types/expected_keepers.go |
Added GetSuperNodeByAccount to interface definition and reordered imports |
x/supernode/v1/mocks/expected_keepers_mock.go |
Generated mock implementation for new interface method |
x/supernode/v1/keeper/supernode.go |
Implemented GetSuperNodeByAccount, improved pagination filtering, added default case handling in SetSuperNodeActive |
x/supernode/v1/keeper/query_get_super_node_by_super_node_address.go |
Refactored to use new GetSuperNodeByAccount method instead of full scan |
x/supernode/v1/keeper/msg_server_stop_supernode.go |
Fixed indentation (cosmetic change) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
I've reviewed the latest changes (commit
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
PR Description
Summary
ListActionsByCreatorquery (gRPC/REST/autocli) to fetch actions by creator with tests and generated proto artifacts.