-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Remove chaincode legacy cli command #4586
Conversation
d0aa67d
to
d83fca9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @C0rWin
My understanding is that the peer chaincode invoke
and query
commands are not deprecated and are currently still in use. So, I think they should not be removed yet. Could you please confirm this?
Yes, you are correct, will bring it back, thanks. |
4324138
to
62660a8
Compare
0485f9d
to
82dce62
Compare
82dce62
to
4201eb5
Compare
d63b282
to
64fefb4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with the change.
And should we move this part to somewhere as an individual package? in case someone want to check/read the code?
wdym? it's already in separate package. |
19109bc
to
ee2c565
Compare
internal/peer/chaincode/chaincode.go
Outdated
@@ -115,18 +97,8 @@ func resetFlags() { | |||
"The channel on which this command should be executed") | |||
flags.StringVarP(&policy, "policy", "P", common.UndefinedParamValue, | |||
"The endorsement policy associated to this chaincode") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe these flags can also be removed since they are not used for invoke or query:
- lang
- path
- version
- username
- policy
Also remove the corresponding variables above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think you can remove version, since it's part of the chaincode specification. I will remove the rest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@denyeart lang
, version
and path
are used in ChaincodeSpec
, hence we cannot take them away, while I removed policy
and username
.
See:
Signed-off-by: Artem Barger <artem@bargr.net>
Signed-off-by: Artem Barger <artem@bargr.net>
Signed-off-by: Artem Barger <artem@bargr.net>
ee2c565
to
fdfcc87
Compare
Hello @C0rWin @denyeart |
My plan was to wait for @C0rWin to complete his series of removal PRs and then do a full assessment of any remaining references to be removed. I'll defer to @C0rWin whether he wants help with the docs or other areas. |
I have the final mile to remove the actual code that implements these commands. Unfortunately, pieces of this code are convoluted with the new lifecycle and it's trickier given that we need to make sure not to break the validation part in case new peers will get connected with some legacy systems. |
This commit is to remove the peer cli chaincode command to get rid of the deprecated chaincode lifecycle.