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

Add migration for channel params #5640

Merged
merged 8 commits into from
Jan 18, 2024

Conversation

chatton
Copy link
Contributor

@chatton chatton commented Jan 17, 2024

Description

closes: #5639

An E2E upgrade test will be added in a follow up PR


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2024

Codecov Report

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

Comparison is base (6174822) 81.16% compared to head (b8b9dd0) 81.16%.
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5640   +/-   ##
=======================================
  Coverage   81.16%   81.16%           
=======================================
  Files         198      199    +1     
  Lines       15267    15278   +11     
=======================================
+ Hits        12392    12401    +9     
- Misses       2407     2408    +1     
- Partials      468      469    +1     
Files Coverage Δ
modules/core/04-channel/keeper/migrations.go 100.00% <100.00%> (ø)
modules/core/module.go 37.34% <60.00%> (+0.64%) ⬆️

@DimitrisJim DimitrisJim added the priority PRs that need prompt reviews label Jan 17, 2024
@@ -561,7 +561,7 @@ func defaultGovv1ModifyGenesis(version string) func(ibc.ChainConfig, []byte) ([]
appState[govtypes.ModuleName] = govGenBz
Copy link
Contributor Author

Choose a reason for hiding this comment

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

linter fixes in this file

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Quick work!

Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

lgtm, nice find 🥇 left one comment re cov for param validation.

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Clean! Nice one @chatton 🎉

modules/core/04-channel/keeper/migrations.go Outdated Show resolved Hide resolved
@crodriguezvega
Copy link
Contributor

I will merge to kick off the backport.

@crodriguezvega crodriguezvega merged commit 59ac9b2 into main Jan 18, 2024
61 of 63 checks passed
@crodriguezvega crodriguezvega deleted the cian/issue#5639-add-migration-for-channel-params branch January 18, 2024 08:30
mergify bot pushed a commit that referenced this pull request Jan 18, 2024
* chore: adding channel params migration

* chore: removed separate migration fn

* chore: fix linter

* chore: bump consensus

* chore: fix linter again

* chore: pr feedback

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
(cherry picked from commit 59ac9b2)
crodriguezvega pushed a commit that referenced this pull request Jan 18, 2024
* chore: adding channel params migration

* chore: removed separate migration fn

* chore: fix linter

* chore: bump consensus

* chore: fix linter again

* chore: pr feedback

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
(cherry picked from commit 59ac9b2)

Co-authored-by: Cian Hatton <cian@interchain.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority PRs that need prompt reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add migration for channel params
6 participants