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

Profiles fixes #415

Merged
merged 10 commits into from
May 10, 2021
Merged

Profiles fixes #415

merged 10 commits into from
May 10, 2021

Conversation

leobragaz
Copy link
Contributor

@leobragaz leobragaz commented May 5, 2021

Description

This PR fixes some bugs of the x/profiles module.
Closes #413.
Closes #414.

Checklist

  • Targeted PR against correct branch.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit tests.
  • Wrote integration tests (simulation & CLI).
  • Updated the documentation.
  • Added an entry to the CHANGELOG.md file.
  • Re-reviewed Files changed in the Github PR explorer.

fixed related tests
updated docs
@leobragaz leobragaz self-assigned this May 5, 2021
@codecov
Copy link

codecov bot commented May 5, 2021

Codecov Report

Merging #415 (ca22411) into master (8eae4ab) will not change coverage.
The diff coverage is 85.41%.

❗ Current head ca22411 differs from pull request most recent head 2df4bb3. Consider uploading reports for the commit 2df4bb3 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master     #415   +/-   ##
=======================================
  Coverage   72.44%   72.44%           
=======================================
  Files          66       66           
  Lines        3429     3429           
=======================================
  Hits         2484     2484           
  Misses        847      847           
  Partials       98       98           
Impacted Files Coverage Δ
x/profiles/types/account.go 55.26% <55.55%> (ø)
x/profiles/types/params.go 81.66% <87.50%> (ø)
x/profiles/client/cli/tx.go 78.45% <100.00%> (ø)
x/profiles/keeper/keeper.go 96.49% <100.00%> (ø)
x/profiles/keeper/msgs_server.go 83.57% <100.00%> (ø)
x/profiles/types/msgs.go 100.00% <100.00%> (ø)

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 8eae4ab...2df4bb3. Read the comment docs.

@leobragaz leobragaz requested a review from RiccardoM May 5, 2021 14:07
Copy link
Contributor

@RiccardoM RiccardoM left a comment

Choose a reason for hiding this comment

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

Everything looks great. Could you please add a function that converts an old Profile into a new one? We will need this because this changes will need to be applied into the currently running testnet, and we need such function to be run during the upgrade.

The best approach would be to follow Cosmos one as done here (just we don't need the queryServer, we only need to perform the migration):

https://github.com/cosmos/cosmos-sdk/blob/master/x/auth/keeper/migrations.go

@RiccardoM RiccardoM modified the milestone: v0.16.2 May 6, 2021
…eonardo/profiles-bugs-fixes

� Conflicts:
�	CHANGELOG.md
@leobragaz
Copy link
Contributor Author

@RiccardoM I've added a legacy test that should fit the purpose, it looks like you've said that Protobuf doesn't care about fields names.

@leobragaz leobragaz requested a review from RiccardoM May 7, 2021 12:18
…legacy v0160 profile to the newer profile version"

This reverts commit 55fdff0
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@RiccardoM RiccardoM enabled auto-merge (squash) May 10, 2021 05:14
@RiccardoM RiccardoM merged commit 7667832 into master May 10, 2021
@RiccardoM RiccardoM deleted the leonardo/profiles-bugs-fixes branch May 10, 2021 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants