-
Notifications
You must be signed in to change notification settings - Fork 9.1k
added to OSN new handler for fetch a block of channel part 2 #5290
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
Conversation
} | ||
|
||
// swagger:operation GET /v1/participation/channels/{channelID} channels listChannel | ||
// swagger:operation GET /participation/v1/channels/{channelID} channels listChannel |
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.
why did you change it?
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.
According to the code, everywhere orderer and osnadmin we use "/participation/v1/". And only in the swagger file the path is reversed "/v1/participation/". This option is not working. This means that no one has used the swagger file yet.
Of the two options, I chose to leave the one that is exactly being used, respectively, and fixed the other one.
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.
The description of // swagger:operation
only helps the program generate the file swagger.json doesn't affect anything else.
The actual path pattern is defined below, and usually uses the constant URLBaseV1
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.
Putting the version number ahead is preferable. When you update to a newer version, it is easy to distinguish from the very beginning.
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.
Alas, this is inherited. I know it's better this way, but then we'll break backward compatibility. Because so far everything has worked when the version was in second place.
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.
Now there is a lot of code that already uses the version in the 2nd place.
For example: https://github.com/hyperledger/fabric-admin-sdk/blob/main/internal/osnadmin/join.go#L19
Why is the description empty? |
part 2 Signed-off-by: Fedor Partanskiy <[email protected]>
c8bdcba
to
53c1b05
Compare
@C0rWin shall we cut a release on the weekend? |
Please wait for 2 pr. I need to finish the theme. |
Sure |
No description provided.