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: remove deprecated vote option #10854

Merged
merged 16 commits into from
Jan 26, 2022
Merged

refactor: remove deprecated vote option #10854

merged 16 commits into from
Jan 26, 2022

Conversation

atheeshp
Copy link
Contributor

Description

Closes: #10792


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)

@atheeshp atheeshp changed the base branch from master to ap/gov-types-to-v1beta2 December 31, 2021 10:19
@atheeshp atheeshp changed the title refactor: remove dprecated vote option refactor: remove deprecated vote option Jan 4, 2022
Base automatically changed from ap/gov-types-to-v1beta2 to master January 4, 2022 16:10
// Deprecated: Prefer to use `options` instead. This field is set in queries
// if and only if `len(options) == 1` and that option has weight 1. In all
// other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
VoteOption option = 3 [deprecated = true];
Copy link
Contributor

Choose a reason for hiding this comment

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

let's add a reserved 3

@cmwaters
Copy link
Contributor

cmwaters commented Jan 7, 2022

Hey, what's the status on this. Is it ready to be reviewed?

@atheeshp
Copy link
Contributor Author

atheeshp commented Jan 7, 2022

Hey, what's the status on this. Is it ready to be reviewed?

@AmauryM said this has to wait for #10868 (once we switch to v1beta2 everywhere, we should see if there are still places left which use the old field)

@cmwaters
Copy link
Contributor

This should be unblocked now @atheeshp. Do you mind updating the PR and resolving the conflicts so we can merge 🙏

@github-actions github-actions bot added the C:orm label Jan 24, 2022
@atheeshp atheeshp marked this pull request as ready for review January 24, 2022 13:47
Copy link
Contributor

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

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

looks like there are a few other places that uses vote.Option that we need to remove

@codecov
Copy link

codecov bot commented Jan 25, 2022

Codecov Report

Merging #10854 (094c295) into master (95e65fe) will decrease coverage by 0.04%.
The diff coverage is 77.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10854      +/-   ##
==========================================
- Coverage   65.95%   65.90%   -0.05%     
==========================================
  Files         647      677      +30     
  Lines       65873    68059    +2186     
==========================================
+ Hits        43444    44854    +1410     
- Misses      19941    20498     +557     
- Partials     2488     2707     +219     
Impacted Files Coverage Δ
crypto/armor.go 83.08% <ø> (ø)
x/gov/keeper/grpc_query.go 73.01% <ø> (-0.29%) ⬇️
x/gov/keeper/vote.go 92.50% <ø> (+2.17%) ⬆️
crypto/xsalsa20symmetric/symmetric.go 65.71% <65.71%> (ø)
x/upgrade/abci.go 92.15% <84.61%> (-2.58%) ⬇️
x/upgrade/keeper/keeper.go 84.61% <100.00%> (+3.49%) ⬆️
x/distribution/simulation/operations.go 80.54% <0.00%> (-9.73%) ⬇️
errors/handle.go
errors/errors.go
... and 36 more

@amaury1093 amaury1093 self-assigned this Jan 25, 2022
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

lgtm, should we add a changelog entry so client libraries are aware?

@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Jan 26, 2022
@mergify mergify bot merged commit 8133ee8 into master Jan 26, 2022
@mergify mergify bot deleted the ap/remove-vote-option branch January 26, 2022 10:37
@amaury1093 amaury1093 mentioned this pull request Jan 28, 2022
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:orm C:x/gov
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gov v1beta2 remove deprecated Vote.option
4 participants