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

fix: improve x/profiles gRPC queries #760

Merged
merged 74 commits into from
Mar 3, 2022

Conversation

RiccardoM
Copy link
Contributor

@RiccardoM RiccardoM commented Feb 28, 2022

Description

This PR improves the gRPC queries for the x/profiles module by moving some parameters from the URL to the query

Closes: #757

Depends-On: #759


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...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

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...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

RiccardoM and others added 30 commits January 14, 2022 10:29
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
…subspace-module-adr-impl

� Conflicts:
�	x/profiles/types/models_chain_links.pb.go
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
… files

Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
…ps module

Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
…relationships-module

� Conflicts:
�	app/app.go
�	app/desmos/cmd/chainlink/create_json_test.go
�	app/params/weights.go
�	client/docs/swagger-ui/swagger.yaml
�	proto/desmos/profiles/v1beta1/query_relationships.proto
�	proto/desmos/profiles/v2/models_relationships.proto
�	proto/desmos/profiles/v3/genesis.proto
�	proto/desmos/profiles/v3/msg_server.proto
�	proto/desmos/profiles/v3/msgs_dtag_requests.proto
�	proto/desmos/profiles/v3/msgs_profile.proto
�	proto/desmos/profiles/v3/msgs_relationships.proto
�	proto/desmos/profiles/v3/query.proto
�	proto/desmos/profiles/v3/query_relationships.proto
�	proto/desmos/relationships/v1/query.proto
�	proto/desmos/subspaces/v1/genesis.proto
�	proto/desmos/subspaces/v1/msgs.proto
�	proto/desmos/subspaces/v1/query.proto
�	x/profiles/client/cli/cli_test.go
�	x/profiles/keeper/genesis_test.go
�	x/profiles/keeper/grpc_query.go
�	x/profiles/keeper/grpc_query_test.go
�	x/profiles/keeper/invariants.go
�	x/profiles/keeper/invariants_test.go
�	x/profiles/keeper/keeper.go
�	x/profiles/keeper/migrations.go
�	x/profiles/keeper/msg_server_blocks.go
�	x/profiles/keeper/msg_server_relationships.go
�	x/profiles/keeper/msg_server_relationships_test.go
�	x/profiles/legacy/v2/models_relationships.pb.go
�	x/profiles/legacy/v3/store.go
�	x/profiles/module.go
�	x/profiles/simulation/decoder.go
�	x/profiles/simulation/decoder_test.go
�	x/profiles/simulation/genesis.go
�	x/profiles/simulation/operations.go
�	x/profiles/types/genesis.go
�	x/profiles/types/genesis.pb.go
�	x/profiles/types/genesis_test.go
�	x/profiles/types/keys.go
�	x/profiles/types/msg_server.pb.go
�	x/profiles/types/msgs_dtag_requests.pb.go
�	x/profiles/types/msgs_profile.pb.go
�	x/profiles/types/query.pb.go
�	x/profiles/types/query.pb.gw.go
�	x/relationships/client/cli/tx.go
�	x/relationships/keeper/blocks.go
�	x/relationships/keeper/blocks_test.go
�	x/relationships/keeper/msg_server_test.go
�	x/relationships/keeper/relationships.go
�	x/relationships/simulation/operations_relationships.go
�	x/relationships/types/models.go
�	x/relationships/types/msg_server.pb.go
�	x/relationships/types/msgs.go
�	x/relationships/types/query.pb.go
�	x/subspaces/client/cli/cli_test.go
�	x/subspaces/client/cli/query.go
�	x/subspaces/client/cli/tx.go
�	x/subspaces/handler.go
�	x/subspaces/keeper/alias_functions.go
�	x/subspaces/keeper/genesis.go
�	x/subspaces/keeper/genesis_test.go
�	x/subspaces/keeper/groups.go
�	x/subspaces/keeper/groups_test.go
�	x/subspaces/keeper/grpc_query.go
�	x/subspaces/keeper/grpc_query_test.go
�	x/subspaces/keeper/invariants.go
�	x/subspaces/keeper/invariants_test.go
�	x/subspaces/keeper/keeper.go
�	x/subspaces/keeper/msg_server.go
�	x/subspaces/keeper/msg_server_test.go
�	x/subspaces/keeper/permissions.go
�	x/subspaces/keeper/permissions_test.go
�	x/subspaces/keeper/subspaces.go
�	x/subspaces/keeper/subspaces_test.go
�	x/subspaces/simulation/decoder.go
�	x/subspaces/simulation/decoder_test.go
�	x/subspaces/simulation/genesis.go
�	x/subspaces/simulation/operations.go
�	x/subspaces/simulation/operations_groups.go
�	x/subspaces/simulation/operations_permissions.go
�	x/subspaces/simulation/operations_subspaces.go
�	x/subspaces/simulation/utils.go
�	x/subspaces/types/codec.go
�	x/subspaces/types/events.go
�	x/subspaces/types/genesis.go
�	x/subspaces/types/genesis.pb.go
�	x/subspaces/types/genesis_test.go
�	x/subspaces/types/keys.go
�	x/subspaces/types/msgs.go
�	x/subspaces/types/msgs.pb.go
�	x/subspaces/types/msgs_test.go
�	x/subspaces/types/permissions.go
�	x/subspaces/types/query.go
�	x/subspaces/types/query.pb.go
�	x/subspaces/types/query.pb.gw.go

Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
@github-actions github-actions bot added kind/build Related to the build of the project kind/ci Improve the CI/CD x/CLI x/profiles Module that allows to create and manage decentralized social profiles x/subspaces Issue on the x/subspaces module labels Feb 28, 2022
RiccardoM and others added 5 commits February 28, 2022 14:18
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
…s/desmos into riccardo/improve-profiles-queries
@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #760 (961cb53) into master (ce83cc5) will decrease coverage by 0.11%.
The diff coverage is 79.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #760      +/-   ##
==========================================
- Coverage   81.32%   81.20%   -0.12%     
==========================================
  Files          77       77              
  Lines        6239     6248       +9     
==========================================
  Hits         5074     5074              
- Misses        934      940       +6     
- Partials      231      234       +3     
Impacted Files Coverage Δ
x/profiles/client/cli/cli_app_links.go 33.59% <53.84%> (-0.58%) ⬇️
x/profiles/client/cli/cli_chain_links.go 81.57% <53.84%> (-4.28%) ⬇️
x/profiles/client/cli/cli_dtag_requests.go 82.20% <100.00%> (ø)
x/profiles/keeper/grpc_query.go 74.57% <100.00%> (+0.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce83cc5...961cb53. Read the comment docs.

Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
…fix-profiles-events

� Conflicts:
�	.github/workflows/sims.yml
�	app/sim_test.go
�	x/profiles/types/events.go
…/desmos into riccardo/improve-profiles-queries
@github-actions github-actions bot removed x/subspaces Issue on the x/subspaces module kind/ci Improve the CI/CD kind/build Related to the build of the project labels Mar 1, 2022
@RiccardoM RiccardoM added the automerge Automatically merge PR once all prerequisites pass label Mar 2, 2022
Copy link
Contributor

@leobragaz leobragaz left a comment

Choose a reason for hiding this comment

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

Awesome work!

Copy link
Contributor

@dadamu dadamu left a comment

Choose a reason for hiding this comment

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

Great work!

@mergify mergify bot merged commit 1e45e5a into master Mar 3, 2022
@mergify mergify bot deleted the riccardo/improve-profiles-queries branch March 3, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PR once all prerequisites pass x/CLI x/profiles Module that allows to create and manage decentralized social profiles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review x/profiles queries to remove params from URLs
3 participants