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

feat(connector-fabric): endorsing peers request arg #1122 #1133

Merged
merged 2 commits into from
Jul 23, 2021

Conversation

petermetz
Copy link
Contributor

Makes it possible to set the endorsing peers on a transaction
when submitted through the Fabric connector.

For example these values can be passed in to the new parameter
and it will set the endorsers up accordingly prior to submitting
the transaction to the ledger:

  • org1.example.com
  • Org1MSP
  • org2.example.com
  • Org2MSP

(You only need either the org domain or the msp ID, no need
to specify both of them for it to work).

For a working example, see this test case:
packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/run-transaction-endpoint-v1.test.ts

Depends on #1123
Depends on #1130

Fixes #1122

Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com

@petermetz petermetz added enhancement New feature or request Fabric labels Jul 14, 2021
@petermetz petermetz requested review from kikoncuo and takeutak July 14, 2021 06:15
@petermetz petermetz self-assigned this Jul 14, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2021

Codecov Report

Merging #1133 (a8f6dcf) into main (260990b) will increase coverage by 0.16%.
The diff coverage is 79.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1133      +/-   ##
==========================================
+ Coverage   73.14%   73.30%   +0.16%     
==========================================
  Files         246      248       +2     
  Lines        8617     8782     +165     
  Branches      996     1025      +29     
==========================================
+ Hits         6303     6438     +135     
- Misses       1783     1796      +13     
- Partials      531      548      +17     
Impacted Files Coverage Δ
...pescript/generated/openapi/typescript-axios/api.ts 86.13% <ø> (ø)
...oling/src/main/typescript/besu/besu-test-ledger.ts 73.83% <ø> (+0.05%) ⬆️
...t-tooling/src/main/typescript/common/containers.ts 73.66% <ø> (-1.65%) ⬇️
...rc/main/typescript/fabric/fabric-test-ledger-v1.ts 83.59% <ø> (+0.17%) ⬆️
...g/src/main/typescript/quorum/quorum-test-ledger.ts 67.68% <ø> (+2.14%) ⬆️
...rc/main/typescript/plugin-ledger-connector-besu.ts 77.74% <71.42%> (-0.63%) ⬇️
...abric/src/main/typescript/common/create-gateway.ts 78.37% <78.37%> (ø)
.../main/typescript/plugin-ledger-connector-fabric.ts 83.25% <79.54%> (+0.44%) ⬆️
...pescript/generated/openapi/typescript-axios/api.ts 62.98% <83.33%> (+1.92%) ⬆️
...script/web-services/get-besu-record-endpoint-v1.ts 84.84% <84.84%> (ø)
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 250197f...a8f6dcf. Read the comment docs.

Copy link
Contributor

@jonathan-m-hamilton jonathan-m-hamilton left a comment

Choose a reason for hiding this comment

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

LGTM

@petermetz petermetz removed the request for review from kikoncuo July 19, 2021 19:18
@github-actions
Copy link

🎉 Great news! Looks like all the dependencies have been resolved:

💡 To add or remove a dependency please update this issue/PR description.

Brought to you by Dependent Issues (:robot: ). Happy coding!

@petermetz petermetz force-pushed the feat-1122 branch 2 times, most recently from 7c950b0 to 2b97679 Compare July 22, 2021 23:40
…#1122

Makes it possible to set the endorsing peers on a transaction
when submitted through the Fabric connector.

For example these values can be passed in to the new parameter
and it will set the endorsers up accordingly prior to submitting
the transaction to the ledger:
- org1.example.com
- Org1MSP
- org2.example.com
- Org2MSP

(You only need either the org domain or the msp ID, no need
to specify both of them for it to work).

For a working example, see this test case:
packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/
integration/fabric-v2-2-x/run-transaction-endpoint-v1.test.ts

Depends on hyperledger-cacti#1123
Depends on hyperledger-cacti#1130

Fixes hyperledger-cacti#1122

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@petermetz petermetz merged commit c6057a7 into hyperledger-cacti:main Jul 23, 2021
@petermetz petermetz deleted the feat-1122 branch July 23, 2021 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Fabric
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(connector-fabric): endorsing peers request arg
4 participants