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

Minor updates related to documentation for commands and more osnadmin updates #2318

Merged
merged 3 commits into from
Jan 27, 2021

Conversation

sykesm
Copy link
Contributor

@sykesm sykesm commented Jan 27, 2021

  • Prevent osnadmin tests from exiting the test execution process when a bad flag is provided
  • Update the help doc generation script to filter trailing spaces from command help
  • Update the reference to the old channel-id that was included in the osnadmin command help

This change returns an error from `executeForArgs` when the command line
cannot be parsed. Without this change, tests that use the function
quietly exit without a clear indication as to why.

Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
@sykesm sykesm requested review from a team as code owners January 27, 2021 21:24
@@ -595,7 +595,7 @@ also outputs which organizations have approved the chaincode definition. If an
organization has approved the chaincode definition specified in the command, the
command will return a value of true. You can use this command to learn whether enough
channel members have approved a chaincode definition to meet the
`/Channel/Application/Endorsement` policy (a majority by default) before the
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you remove this with a batch search-replace?

Copy link
Contributor Author

@sykesm sykesm Jan 27, 2021

Choose a reason for hiding this comment

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

It's related because it's the output of the automated doc generation for command help. It's clear that commands have been getting updated without regenerating the docs. The regen of the docs was explicitly called out in the commit message.

In this case, commit 49ed882 changed the postscript without updating docs.
In this case, 5df63f1 changed the generated doc instead of the postscript. That change was incorrect.

- Change the generateHelpDocs script to remove trailing spaces from the
  generated help text. This prevents linting failures from
  check_trailingspaces.sh
- Remove trailing space from osnadmin_channel_postscript.md
- Regenerate the help docs with `make help-docs`

Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
@sykesm sykesm merged commit 9adbb41 into hyperledger:master Jan 27, 2021
@sykesm sykesm deleted the fixup-osnadmin branch January 27, 2021 23:06
@pamandrejko
Copy link
Contributor

@sykesm OK to mergifyio this back to the 2.3 branch?

@sykesm
Copy link
Contributor Author

sykesm commented Jan 28, 2021

@sykesm OK to mergifyio this back to the 2.3 branch?

I think it's better to do it manually. I can do that if you want.

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