-
Notifications
You must be signed in to change notification settings - Fork 285
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(persistence-fabric): rewrite the plugin #3308
feat(persistence-fabric): rewrite the plugin #3308
Conversation
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
- | - | Generic Password | 1fce960 | packages/cactus-plugin-persistence-fabric/src/test/typescript/integration/persistence-fabric-db-client.test.ts | View secret |
- | - | Generic Password | 1fce960 | packages/cactus-plugin-persistence-fabric/src/test/typescript/integration/persistence-fabrc-postgresql-db-client.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
...gin-persistence-fabric/src/test/typescript/integration/persistence-fabric-functional.test.ts
Dismissed
Show dismissed
Hide dismissed
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.
@outSH:I had a couple of nits but LGTM in general.
Important note: I'm in the process of fixing the release management flow we have and it involves a change in the development workflow when dealing with openapi spec files. The short version is that after that PR gets merged you'll need to make your changes in the openapi.tpl.json
file instead of the openapi.json
file (they'll be right next to each other for convenience.
packages/cactus-plugin-ledger-connector-fabric/src/main/json/openapi.json
Outdated
Show resolved
Hide resolved
.../cactus-plugin-ledger-connector-fabric/src/main/typescript/plugin-ledger-connector-fabric.ts
Outdated
Show resolved
Hide resolved
- Rewrite fabric app using MUI components and new database schema. - Improve `UITableListing` to support clickable tables. - The new app supports the following views: - Dashboard: Shows summary of blocks and transaction recorded in database. - Block list: Full list of blocks - Transaction list: Full list of transactions - Transaction details: Page that shows full transaction information, transaction actions (method calls) and endorsements. Depends on hyperledger-cacti#3308 Depends on hyperledger-cacti#3279 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
@outSH TODO before merge: Add |
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.
@outSH LGTM with comments:
For the commit message, it is a refactor then I'd recommend a commit message like this (or similar)
refactor(plugin-persistence-fabric): bring names closer to ethereum pkg
Reasoning:
- If there is no new feature being added then the
refactor
type is probably better describing what happened because the functionality remained the same things just got renamed/shifted around. - "rewrite the plugin" is something that could describe a lot other changes where you rewrote something in the plugin, so I'd try to make it slightly more specific by pulling some of the information from the commit message body up to the subject line as well.
Sorry for the annoying nit-picks as usual!
@petermetz This is a complete do-over of the plugin, with completely different plugin behavior (that matches ethereum persistence plugin in case of error handling, detecting missing blocks, etc..). It's not just name rearrangement, for this reason I think the current title is descriptive enough. |
This PR/issue depends on:
|
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.
LGTM
0e48f29
to
f912f7f
Compare
- Rewrite fabric persistence plugin to match persistence ethereum plugin methods and behavior. - Change DB schema for persistence. - Add tests and sample data to the new plugin. Add them to project CI. Depends on hyperledger-cacti#3298 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
f912f7f
to
1fce960
Compare
- Rewrite fabric app using MUI components and new database schema. - Improve `UITableListing` to support clickable tables. - The new app supports the following views: - Dashboard: Shows summary of blocks and transaction recorded in database. - Block list: Full list of blocks - Transaction list: Full list of transactions - Transaction details: Page that shows full transaction information, transaction actions (method calls) and endorsements. Depends on hyperledger-cacti#3308 Depends on hyperledger-cacti#3279 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Rewrite fabric app using MUI components and new database schema. - Improve `UITableListing` to support clickable tables. - The new app supports the following views: - Dashboard: Shows summary of blocks and transaction recorded in database. - Block list: Full list of blocks - Transaction list: Full list of transactions - Transaction details: Page that shows full transaction information, transaction actions (method calls) and endorsements. Depends on hyperledger-cacti#3308 Depends on hyperledger-cacti#3279 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Rewrite fabric app using MUI components and new database schema. - Improve `UITableListing` to support clickable tables. - The new app supports the following views: - Dashboard: Shows summary of blocks and transaction recorded in database. - Block list: Full list of blocks - Transaction list: Full list of transactions - Transaction details: Page that shows full transaction information, transaction actions (method calls) and endorsements. Depends on hyperledger-cacti#3308 Depends on hyperledger-cacti#3279 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Rewrite fabric app using MUI components and new database schema. - Improve `UITableListing` to support clickable tables. - The new app supports the following views: - Dashboard: Shows summary of blocks and transaction recorded in database. - Block list: Full list of blocks - Transaction list: Full list of transactions - Transaction details: Page that shows full transaction information, transaction actions (method calls) and endorsements. Depends on #3308 Depends on #3279 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
feat(persistence-fabric): rewrite the plugin
plugin method names and overall behavior.
Depends on #3298
Signed-off-by: Michal Bajer michal.bajer@fujitsu.com
Pull Request Requirements
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.-s
flag when usinggit commit
command. You may refer to this link for more information.Character Limit
A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.