-
Notifications
You must be signed in to change notification settings - Fork 444
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 old cc pkg upload API #583
Conversation
Refactor old chaincode package upload API according to the new design doc. Signed-off-by: xichen1 <xichen.pan@gmail.com>
The original API implementation requires the user to upload a zipped chaincode file, then the backend will package the the cc file using peer command line. According to our new API design, now we need the user to package the cc package by themselves and upload the cc package directly. Therefore adjust the current implementation to allow the requirement. The PR also updated the cc Django model, the current db columns include uuid, package_id, name, label, version, creator, language, description and create_ts. |
One issue still exists is it's impossible to get cc version from the Do we update the version in the backend automatically? (if a duplicate cc package id is received we increase the version?) Update: It seems cc name and version can only be created in |
Need to simplify the extraction and verification steps. Only need to extract
|
Confirmed: cc names and versions are decided at |
Extract only necessary info from cc package. Optimize performance. Add postman testcase for cc upload. Signed-off-by: xichen1 <xichen.pan@gmail.com>
Signed-off-by: xichen1 <xichen.pan@gmail.com>
Signed-off-by: xichen1 <xichen.pan@gmail.com>
Refactor old chaincode package upload API according to the new design doc.
Signed-off-by: xichen1 xichen.pan@gmail.com