Skip to content

feat(fabric-persistence): save discovery results in a database #3837

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

outSH
Copy link
Contributor

@outSH outSH commented Apr 3, 2025

  • Add discoverNetwork function for saving current fabric
    network structure to the database.
  • Add DiscoverNetworkEndpointV1 endpoint for refreshing
    the discovery results.
  • Add tests for new functions.

Depends on #3726

Depends on #3856

Closes #3836

Signed-off-by: Michal Bajer [email protected]

Pull Request Requirements

  • Rebased onto upstream/main branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.
  • Have git sign off at the end of commit message to avoid being marked red. You can add -s flag when using git commit command. You may refer to this link for more information.
  • Follow the Commit Linting specification. You may refer to this link for more information.

Character Limit

  • Pull Request Title and Commit Subject must not exceed 72 characters (including spaces and special characters).
  • Commit Message per line must not exceed 80 characters (including spaces and special characters).

A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.

@petermetz
Copy link
Contributor

@outSH The spellchecker caught these:

./packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/plugin-ledger-connector-fabric.ts:1989:7 - Unknown word (msps)
./packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/plugin-ledger-connector-fabric.ts:1989:38 - Unknown word (msps)
./packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/connector-fabric-baseline.test.ts:930:41 - Unknown word (msps)
./packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/connector-fabric-baseline.test.ts:931:54 - Unknown word (msps)
./packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/connector-fabric-baseline.test.ts:959:89 - Unknown word (lifcecycle)
./packages/cactus-plugin-persistence-fabric/src/main/typescript/db-client/db-client.ts:22:32 - Unknown word (Msps)
./packages/cactus-plugin-persistence-fabric/src/main/typescript/db-client/db-client.ts:512:39 - Unknown word (Msps)
./packages/cactus-plugin-persistence-fabric/src/main/typescript/db-client/db-client.ts:606:56 - Unknown word (msps)
./packages/cactus-plugin-persistence-fabric/src/test/typescript/integration/persistence-fabrc-postgresql-db-client.test.ts:413:13 - Unknown word (Msps)
./packages/cactus-plugin-persistence-fabric/src/test/typescript/integration/persistence-fabrc-postgresql-db-client.test.ts:414:14 - Unknown word (Msps)
./packages/cactus-plugin-persistence-fabric/src/test/typescript/integration/persistence-fabrc-postgresql-db-client.test.ts:415:25 - Unknown word (Msps)
./packages/cactus-plugin-persistence-fabric/src/test/typescript/integration/persistence-fabric-functional.test.ts:436:45 - Unknown word (msps)
./packages/cactus-plugin-persistence-fabric/src/test/typescript/integration/sample-data.ts:109:3 - Unknown word (msps)
CSpell: Files checked: 1229, Issues found: 13 in 6 files.
ERROR: "spellcheck" exited with 1.

@outSH outSH force-pushed the persist_fabric_discovery_results_pr branch 2 times, most recently from c93ec8e to 754b896 Compare April 9, 2025 12:05
@outSH
Copy link
Contributor Author

outSH commented Apr 9, 2025

Fixed some minor bugs after doing a complete setup + updated the test insert data

outSH added a commit to outSH/cactus that referenced this pull request Apr 11, 2025
- Add `Discovery` tab to Fabric App for showing discovered
  fabric network components by MSP.
- Update REAMDE.
- Fix responsiveness of main App selection screen.

Depends on hyperledger-cacti#3837

Closes hyperledger-cacti#3837

Signed-off-by: Michal Bajer <[email protected]>
outSH added a commit to outSH/cactus that referenced this pull request Apr 11, 2025
  - Add `Discovery` tab to Fabric App for showing discovered
    fabric network components by MSP.
  - Update REAMDE.
  - Fix responsiveness of main App selection screen.

Depends on hyperledger-cacti#3837

Closes hyperledger-cacti#3554

Signed-off-by: Michal Bajer <[email protected]>
@outSH
Copy link
Contributor Author

outSH commented Apr 24, 2025

TODO - fix supabase warnings and errors for new tables as well

Copy link

dpulls bot commented Apr 27, 2025

🎉 All dependencies have been resolved !

- Add `discoverNetwork` function for saving current fabric
  network structure to the database.
- Add `DiscoverNetworkEndpointV1` endpoint for refreshing
  the discovery results.
- Add tests for new functions.

Depends on hyperledger-cacti#3726

Closes hyperledger-cacti#3836

Signed-off-by: Michal Bajer <[email protected]>
@outSH outSH force-pushed the persist_fabric_discovery_results_pr branch from 754b896 to 8a5111d Compare April 29, 2025 09:40
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!

@outSH
Copy link
Contributor Author

outSH commented Apr 29, 2025

@hyperledger-cacti/cacti-maintainers Please have a look in spare time please

Copy link
Contributor

@jagpreetsinghsasan jagpreetsinghsasan left a comment

Choose a reason for hiding this comment

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

LGTM

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.

feat(fabric-persistence): save discovery results in a database
4 participants