-
Notifications
You must be signed in to change notification settings - Fork 556
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
feat: Better names for map/list query endpoints #3962
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3962 +/- ##
==========================================
- Coverage 24.79% 24.79% -0.01%
==========================================
Files 296 296
Lines 24904 24907 +3
==========================================
Hits 6176 6176
- Misses 18161 18164 +3
Partials 567 567
|
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!
...tes/typed/map/files/tests/component/x/{{moduleName}}/keeper/query_{{typeName}}_test.go.plush
Outdated
Show resolved
Hide resolved
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.
lgtm!
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.
lgmt
@toschdev maybe this PR can break some CLI commands into the turorials
* Move query methods to queryServer struct * Rename show-x queries to get-x * Fix map queries bug * Update changelog * More descriptive changelog * Fix singleton cli bug
Closes #3318
This PR moves the query RPC server implementation from
Keeper
struct to a separate dedicated structqueryServer
which helps us negate the possible conflicts betweenKeeper
and query endpoints method names. It also renames theshow-x
cli command formap
/list
types toget-x
and renames the<%= TypeName.UpperCamel %>
query toGet<%= TypeName.UpperCamel %>
and<%= TypeName.UpperCamel %>All
toList<%= TypeName.UpperCamel %>
so we get consistent names for both cli and RPC.