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

Close some TODO/FIXMEs & add more context to remaining ones (batch 1) #702

Merged
merged 12 commits into from
Nov 7, 2023

Conversation

ysv
Copy link
Contributor

@ysv ysv commented Nov 3, 2023

Description

Some TODOs which were not needed anymore were deleted.
And also I added v4 to most of left because they could not be fixed right now and will be resolved in v4+ release.
Other TODO/FIXME will be fixed in standalone PRs

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@ysv ysv requested a review from a team as a code owner November 3, 2023 12:25
@ysv ysv requested review from dzmitryhil, miladz68 and wojtek-coreum and removed request for a team November 3, 2023 12:25
@ysv ysv force-pushed the yaroslav/close-todos branch from 1beb136 to f53528d Compare November 3, 2023 12:26
Copy link
Contributor Author

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 9 files reviewed, 3 unresolved discussions (waiting on @dzmitryhil, @miladz68, and @wojtek-coreum)


app/app.go line 182 at r1 (raw file):

		gov.NewAppModuleBasic(
			[]govclient.ProposalHandler{
				// TODO(v4): Remove once IBC upgrades to the new param management mechanism. Check ibc-go/modules/core/02-client/types/params.go

IBC release a new version v7.3 but no changes related to params are included


app/upgrade/v3/upgrade.go line 107 at r1 (raw file):

				// coreum:
				// TODO(migration-away-from-x/params): Add migration of params for Coreum modules. Skipping them for now.

@miladz68
I saw you added assertions for our params in upgrade integratio tests also. Could you pls double check and verify if nothing is skipped


app/upgrade/v3/upgrade.go line 116 at r1 (raw file):

				if lo.Contains([]string{
					// TODO(migration-away-from-x/params): Add migration of params for Coreum modules. Skipping them for now.

@miladz68 pls double check
We don't need this for our modules, do we ?

Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 9 of 9 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @dzmitryhil, @miladz68, and @ysv)


x/deterministicgas/config.go line 82 at r1 (raw file):

		MsgToMsgURL(&assetfttypes.MsgGloballyUnfreeze{}):    constantGasFunc(5_000),
		MsgToMsgURL(&assetfttypes.MsgSetWhitelistedLimit{}): constantGasFunc(9_000),
		// Once we add a new token upgrade MsgUpgradeTokenV2 we should remove this one and re-estimate gas.

I think TODO should be kept here. Otherwise we won't find it.

@ysv ysv changed the title Close some TODOs & add more context to remaining ones Close some TODOs & add more context to remaining ones batch 1 Nov 3, 2023
@ysv ysv requested a review from wojtek-coreum November 3, 2023 16:51
Copy link
Contributor Author

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewable status: 6 of 19 files reviewed, 5 unresolved discussions (waiting on @dzmitryhil, @miladz68, and @wojtek-coreum)


tools/tools.go line 1 at r2 (raw file):

//go:build tools

@wojtek-coreum @miladz68 @dzmitryhil we don't need this file anymore, do we ?


x/deterministicgas/config.go line 82 at r1 (raw file):

Previously, wojtek-coreum (Wojtek) wrote…

I think TODO should be kept here. Otherwise we won't find it.

ok,
I don't think we need it because message will be added here and editor will see the comment but I'm ok to keep it


x/wnft/keeper/keeper.go line 31 at r3 (raw file):

// Send overwrites Send method of the original keeper.
// Copied from https://github.com/cosmos/cosmos-sdk/blob/a1143138716b64bc4fa0aa53c0f0fa59eb675bb7/x/nft/keeper/msg_server.go#L14
// FIXME(v47-nft-migration): once we update the nft to sdk nft, that methods must be updated as well.

this method is the same on current x/nft module
But we can't replace this hack anyhow so I keep it as it is

@ysv ysv changed the title Close some TODOs & add more context to remaining ones batch 1 Close some TODO/FIXMEs & add more context to remaining ones (batch 1) Nov 3, 2023
Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: 4 of 20 files reviewed, 5 unresolved discussions (waiting on @miladz68 and @wojtek-coreum)


tools/tools.go line 1 at r2 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

@wojtek-coreum @miladz68 @dzmitryhil we don't need this file anymore, do we ?

That file was created for the ignite support, but I guess @wojtek-coreum extended it with the grpc-gateway to generate code. I guess we still needed.

Copy link
Contributor Author

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewable status: 4 of 20 files reviewed, 6 unresolved discussions (waiting on @miladz68 and @wojtek-coreum)


integration-tests/modules/wasm_test.go line 1960 at r5 (raw file):

			b[i] = letterRunes[rand.Intn(len(letterRunes))]
		}
		// Make sure string is not one of reserved subunits/symbols and if it is regenerate it.

the probability was quite low but it happened :)

subunit cannot start with ibc: invalid input: invalid input

https://github.com/CoreumFoundation/coreum/actions/runs/6748086865/job/18345681849?pr=702#step:13:2281


tools/tools.go line 1 at r2 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

That file was created for the ignite support, but I guess @wojtek-coreum extended it with the grpc-gateway to generate code. I guess we still needed.

Because I found similar file in crust crust/build/tools/goinstall.go
And I think it replaces this one. So deps are installed from the one specified in crust

Waiting for Wojtek's input

Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 4 files at r2, 9 of 9 files at r3, 3 of 4 files at r4, 1 of 1 files at r5, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @miladz68)


tools/tools.go line 1 at r2 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

Because I found similar file in crust crust/build/tools/goinstall.go
And I think it replaces this one. So deps are installed from the one specified in crust

Waiting for Wojtek's input

Fuck, I spent a day finding the correct packages in the source code of ignite and they were here all the time... Yeah, we don't need it anymore.

Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @miladz68)

Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @miladz68)

@ysv ysv merged commit e73cf05 into master Nov 7, 2023
7 checks passed
@ysv ysv deleted the yaroslav/close-todos branch November 7, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants