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

Add a new org to the channel #490

Merged
merged 13 commits into from
Oct 28, 2022
Merged

Conversation

zhuyuanmao
Copy link
Member

@zhuyuanmao zhuyuanmao commented Sep 23, 2022

Allow users to append an MSP config to the channel config. Currently, we upload the MSP data via the request body, and will implement uploading via file format.

Endpoint:

PUT http://127.0.0.1:8080/api/v1/channels/:channel_id
Request body:
need to set content-type as multipart/form-data
org_type has two choices Application and Orderer
Screen Shot 2022-10-27 at 9 53 34 PM

Signed-off-by: Yuanmao Zhu yuanmao@ualberta.ca

@zhuyuanmao zhuyuanmao requested a review from a team as a code owner September 23, 2022 22:19
@zhuyuanmao zhuyuanmao changed the title Update channel config file Add a new org to the Channel Sep 23, 2022
@zhuyuanmao zhuyuanmao changed the title Add a new org to the Channel Add a new org to the channel Sep 23, 2022
zhuyuanmao and others added 7 commits September 23, 2022 18:42
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
* [#issue-487]Modify the request to create a node
1. Change the quantity parameter to a number
2. The action parameter is passed through the message body

Signed-off-by: fengyang_sy <fengyang.09186@h3c.com>

* Update node.js

* Update index.js

* Update index.js

* Update node.js

* Update index.js

* Update index.js

Signed-off-by: fengyang_sy <fengyang.09186@h3c.com>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Implement the API allowing a peer to join a channel through the
command `peer channel join -b ${APP_CHANNEL}.block`.

Signed-off-by: Xichen Pan <xichen.pan@gmail.com>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
"CORE_PEER_MSPCONFIGPATH": "{}/{}/users/Admin@{}/msp".format(
dir_node, org_name, org_name),
# Add new org msp
temp_config = channel.config
Copy link
Member

Choose a reason for hiding this comment

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

Need some basic json validation.

Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
dir_node, org_name, org_name),
data = request.FILES["data"]
config = data.config
org = data.org
Copy link
Member

Choose a reason for hiding this comment

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

There should be an optional param to specify whether it's Application org (by default) or Orderer org.

Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
@yeasy yeasy merged commit ffbdbcd into hyperledger:main Oct 28, 2022
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.

None yet

4 participants