You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have a no "leave" command exposed in the console or CLI, which means subscriptions just kinda pile up, no bueno.
proposed command:
> doc leave --help
Unsubscribe from changes to a document, optionally deleting local copy
Usage: doc leave [OPTIONS] <DOC>
Arguments:
<DOC> the document ID to leave
Options:
--remove delete local copy of the document & remove it from the list of documents
-h, --help Print help
I'd like to have the --remove flag on leave because I think that's the closest to what's going on, in technical parlance you're "ceasing replication", and so the action of "leaving" makes it easier to imagine the thing you're leaving will continue to exist for others after you've run this command.
The text was updated successfully, but these errors were encountered:
## Description
In `iroh-sync`:
* feat: Add `Store::remove_replica` to remove a replica (namespace
secret key and all entries)
* feat: Adds `closed` atomic bool on `Replica` to ensure no operations
can be performed on closed or removed replicas
* refactor: To not add yet another `Arc` for the `closed` marker, move
all things into `InnerReplica`
In `iroh`:
* feat: Add `DocDrop` to RPC protocol
* rename `StopSync` to `Leave`
* feat: Add `doc leave` command to CLI / console. `doc leave` runs
`DocStopSync` in the RPC layer (we already had that),
* feat: Add `doc drop` command to delete a document
## Notes & open questions
Fixes#1497
## Change checklist
- [x] Self-review.
- [x] Documentation updates if relevant.
- [x] Tests if relevant.
Currently we have a no "leave" command exposed in the console or CLI, which means subscriptions just kinda pile up, no bueno.
proposed command:
I'd like to have the
--remove
flag onleave
because I think that's the closest to what's going on, in technical parlance you're "ceasing replication", and so the action of "leaving" makes it easier to imagine the thing you're leaving will continue to exist for others after you've run this command.The text was updated successfully, but these errors were encountered: