-
Notifications
You must be signed in to change notification settings - Fork 955
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Purge data in explorer based on a parameter #341
Conversation
Signed-off-by: Abhay Kishore <abhay.kishore@walmart.com>
@@ -2,7 +2,8 @@ | |||
"network-configs": { | |||
"test-network": { | |||
"name": "Test Network", | |||
"profile": "./connection-profile/test-network.json" | |||
"profile": "./connection-profile/test-network.json", | |||
"blockCount": "5" |
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.
[nitpick]: update this to numerical value.
@@ -86,6 +88,8 @@ export class SyncPlatform { | |||
this.network_name = args[1]; | |||
} | |||
|
|||
this.blockCount = network_configs[this.network_id].blockCount; |
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.
blockCount needs to be defined in config.json in (app/platform/fabric/config.json)
* @returns | ||
* @memberof CRUDService | ||
*/ | ||
async deleteBlock(network_name, channel_genesis_hash, blockCount) { |
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.
Ongoing we can add types also in the function args
Duplicate of #362 |
Signed-off-by: Abhay Kishore abhay.kishore@walmart.com
What this PR does / why we need it:
It will purge the old data present in explorer db based on the parameter
blockCount
.blockCount
property can be defined inconfig.json
.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation, usage docs, etc.: