Skip to content
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

Merged
merged 7 commits into from
Feb 14, 2024

Conversation

Ehsan-saradar
Copy link
Contributor

@Ehsan-saradar Ehsan-saradar commented Feb 13, 2024

Closes #3318

This PR moves the query RPC server implementation from Keeper struct to a separate dedicated struct queryServer which helps us negate the possible conflicts between Keeper and query endpoints method names. It also renames the show-x cli command for map/list types to get-x and renames the <%= TypeName.UpperCamel %> query to Get<%= TypeName.UpperCamel %> and <%= TypeName.UpperCamel %>All to List<%= TypeName.UpperCamel %> so we get consistent names for both cli and RPC.

@Ehsan-saradar Ehsan-saradar added the component:scaffold Feature, enhancement, or refactor related to scaffolding. label Feb 13, 2024
@Ehsan-saradar Ehsan-saradar self-assigned this Feb 13, 2024
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (ee46153) 24.79% compared to head (a5514a1) 24.79%.

Additional details and impacted files

Impacted file tree graph

@@            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              
Files Coverage Δ
ignite/templates/typed/singleton/singleton.go 0.00% <0.00%> (ø)
ignite/templates/typed/list/list.go 0.00% <0.00%> (ø)
ignite/templates/typed/map/map.go 0.00% <0.00%> (ø)

@Ehsan-saradar Ehsan-saradar marked this pull request as ready for review February 13, 2024 17:33
julienrbrt
julienrbrt previously approved these changes Feb 13, 2024
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK!

changelog.md Outdated Show resolved Hide resolved
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@Ehsan-saradar Ehsan-saradar enabled auto-merge (squash) February 14, 2024 10:24
Copy link
Collaborator

@Pantani Pantani left a 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

@Ehsan-saradar Ehsan-saradar merged commit f86fa97 into main Feb 14, 2024
44 of 46 checks passed
@Ehsan-saradar Ehsan-saradar deleted the feat/seperate-queries-from-keeper branch February 14, 2024 11:18
julienrbrt pushed a commit that referenced this pull request May 29, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:ci CI/CD workflow and automated jobs. component:configs component:scaffold Feature, enhancement, or refactor related to scaffolding. component:templates type:internal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ignite scaffold list/map: scaffolded queries
4 participants