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

WIP Chain APIs for pkg/configtx orderer, application, consortium, and channel operations #1166

Closed
wants to merge 4 commits into from

Conversation

wlahti
Copy link
Contributor

@wlahti wlahti commented Apr 24, 2020

Type of change

  • Improvement (improvement to code, performance, etc)

Description

First commit:

  • Chain together API calls to retrieve/update orderer configuration instead of hanging everything off the ConfigTx.
  • Also, rename a few private "add" operations to "set"

Second commit:

  • Chain together API calls to retrieve/update application configuration.

Third commit:

  • Chain together API calls to retrieve/update consortium configuration.

Fourth commit:

  • Chain together API calls to retrieve/update channel configuration.

Related issues

FAB-17744

@@ -262,7 +262,7 @@ func newApplicationGroup(application Application) (*cb.ConfigGroup, error) {
applicationGroup := newConfigGroup()
applicationGroup.ModPolicy = AdminsPolicyKey

if err = addPolicies(applicationGroup, application.Policies, AdminsPolicyKey); err != nil {
if err = setPolicies(applicationGroup, application.Policies, AdminsPolicyKey); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cleanup unrelated to the overall goal of this PR but it stood out as I was looking at the new API calls and this underlying private function's naming was inconsistent.

@wlahti wlahti force-pushed the fab-17744 branch 3 times, most recently from fe9f3ff to 49c1049 Compare April 25, 2020 15:25
@wlahti wlahti changed the title WIP Chain APIs for pkg/configtx orderer operations WIP Chain APIs for pkg/configtx orderer and application operations Apr 25, 2020
@wlahti wlahti force-pushed the fab-17744 branch 4 times, most recently from 9940087 to f649f6e Compare April 27, 2020 21:09
@wlahti wlahti changed the title WIP Chain APIs for pkg/configtx orderer and application operations WIP Chain APIs for pkg/configtx orderer, application, and consortium operations Apr 27, 2020
@wlahti wlahti changed the title WIP Chain APIs for pkg/configtx orderer, application, and consortium operations WIP Chain APIs for pkg/configtx orderer, application, consortium, and channel operations Apr 28, 2020
@wlahti
Copy link
Contributor Author

wlahti commented Apr 28, 2020

/ci-run

@caod123
Copy link

caod123 commented May 8, 2020

closing, moved to hyperledger/fabric-config#11

@caod123 caod123 closed this May 8, 2020
@wlahti wlahti deleted the fab-17744 branch September 25, 2020 15:46
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.

2 participants