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

refactor(types)!: remove IntProto and DecProto #16918

Merged
merged 10 commits into from
Jul 12, 2023
Merged

Conversation

robert-zaremba
Copy link
Collaborator

@robert-zaremba robert-zaremba commented Jul 11, 2023

Description

Closes: #15949


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)

@robert-zaremba robert-zaremba added C:Types C: Proto Proto definition and proto release labels Jul 11, 2023
@robert-zaremba robert-zaremba requested a review from a team as a code owner July 11, 2023 09:08
@robert-zaremba robert-zaremba changed the title chore: remove IntProto and DecProto chore!: remove IntProto and DecProto Jul 11, 2023
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! prob need to run make lint-fix to make the linter happy.
A PR is needed to v050 branch as well as a follow-up to deprecate them (so it doesn't get deleted in v051 without a warning).

x/staking/simulation/decoder_test.go Outdated Show resolved Hide resolved
@@ -1,9 +0,0 @@
package types

func (ip IntProto) String() string {
Copy link
Member

Choose a reason for hiding this comment

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

Can you make a PR targeting v0.50 branch that adds the deprecated flag to theses and a proto annotation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So, we don't want to merge it directly to v0.50?

Copy link
Member

Choose a reason for hiding this comment

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

I suppose we could too. Have you used sourcegraph / gh search to verify no one depends on it?

Copy link
Member

@julienrbrt julienrbrt Jul 11, 2023

Choose a reason for hiding this comment

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

After a quick search I think the best path is to deprecate in v0.50 and removing in main.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

so, is anyone using it?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, will handle that once this is merged.

CHANGELOG.md Outdated Show resolved Hide resolved
@robert-zaremba
Copy link
Collaborator Author

Tests are flaky, for example:

fatal error: concurrent map writes

@robert-zaremba
Copy link
Collaborator Author

need one more review

@julienrbrt julienrbrt changed the title chore!: remove IntProto and DecProto refactor(types)!: remove IntProto and DecProto Jul 12, 2023
@github-actions github-actions bot removed the C:x/tx label Jul 12, 2023
@robert-zaremba robert-zaremba added this pull request to the merge queue Jul 12, 2023
Merged via the queue into main with commit bc4ccab Jul 12, 2023
@robert-zaremba robert-zaremba deleted the robert/int-proto branch July 12, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Proto Proto definition and proto release C:Simulations C:Types C:x/staking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Remove DecProto
3 participants