-
Notifications
You must be signed in to change notification settings - Fork 9
fix: pieces can be removed from a data-set #253
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
SgtPooki
wants to merge
20
commits into
master
Choose a base branch
from
8-add-rm---piece-piececid-command
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
93d32ae
fix: pieces can be removed from a data-set
SgtPooki 9abd9ea
Merge branch 'master' into 8-add-rm---piece-piececid-command
SgtPooki 09a2f91
fix: handle pieces pending removal
SgtPooki e7e2fc4
fix: display piece onchain vs pdpserver status
SgtPooki 2c4b84f
fix: rm cmd requires --piece and --data-set
SgtPooki ffd4d01
fix: fix default to orphaned piece status
SgtPooki d139558
Merge branch 'master' into 8-add-rm---piece-piececid-command
SgtPooki 9069e21
deps: upgrade to latest synapse
SgtPooki 28c0883
fix: use new createStorageContext signature in rm
SgtPooki 2d9fc7f
test: fix mock merge issue
SgtPooki 01f6e6c
chore: remove unnecessary as string casting
SgtPooki b60eae6
fix: logger is no longer required for createStorageContext
SgtPooki 6fcb9d6
test: remove-piece is tested
SgtPooki 362cca6
test: assert runRmPiece happy path
SgtPooki 6e372f6
chore: remove outdated comment
SgtPooki e77693f
Update src/core/data-set/get-detailed-data-set.ts
SgtPooki 414aec3
Update src/rm/remove-piece.ts
SgtPooki 2198e51
Update src/rm/remove-piece.ts
SgtPooki a66dd7a
Update src/rm/remove-piece.ts
SgtPooki 797def7
chore: update jsdoc comments in runRmPiece
SgtPooki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { Command } from 'commander' | ||
| import { runRmPiece } from '../rm/index.js' | ||
| import { addAuthOptions } from '../utils/cli-options.js' | ||
|
|
||
| export const rmCommand = new Command('rm') | ||
| .description('Remove a Piece from a DataSet') | ||
| .requiredOption('--piece <cid>', 'Piece CID to remove') | ||
| .requiredOption('--data-set <id>', 'DataSet ID to remove the piece from') | ||
| .option('--wait-for-confirmation', 'Wait for transaction confirmation before exiting') | ||
| .action(async (options) => { | ||
| try { | ||
| await runRmPiece(options) | ||
| } catch { | ||
| // Error already displayed by clack UI in runRmPiece | ||
| process.exit(1) | ||
| } | ||
| }) | ||
|
|
||
| addAuthOptions(rmCommand) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from './remove-piece.js' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.