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

fix inconsistent flag names in upgrade proposal command #7697

Merged
merged 3 commits into from
Oct 28, 2020

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Oct 28, 2020

Description

the flag names in command "tx gov submit-proposal software-upgrade" is not consistent with the name suggest in help messages.


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 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.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

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.

Thanks! Could you add a changelog entry?

@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #7697 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7697   +/-   ##
=======================================
  Coverage   54.11%   54.11%           
=======================================
  Files         611      611           
  Lines       38571    38571           
=======================================
  Hits        20871    20871           
  Misses      15573    15573           
  Partials     2127     2127           

@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Oct 28, 2020
@@ -19,8 +19,8 @@ const (
TimeFormat = "2006-01-02T15:04:05Z"

FlagUpgradeHeight = "upgrade-height"
FlagUpgradeTime = "time"
FlagUpgradeInfo = "info"
FlagUpgradeTime = "upgrade-time"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is good, yet why not just changing update-height to height? Considering that the command itself is named software-upgrade, flags upgrade- prefix has always sounded a bit of an unnecessary repetition IMHO

Copy link
Collaborator Author

@yihuang yihuang Oct 28, 2020

Choose a reason for hiding this comment

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

--height might be confusing with other usage? when query stuff, there's usually a block height parameter.

Copy link
Contributor

@alessio alessio Oct 28, 2020

Choose a reason for hiding this comment

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

--height is a flag for query commands only. It should be safe to reuse it here - please check it out in client/flags 👍

@mergify mergify bot merged commit afb6771 into cosmos:master Oct 28, 2020
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants