-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cleanup #22
Conversation
* Support safe delete * Unwrap public keys
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.
Need to update:
- README instructions with wrapped key
registration_example.go
with wrapped key- Use safe delete in
cmd/e3db/main.go
- Use safe delete in
feedback.go
Maybe some others too?
cmd/e3db/main.go
Outdated
@@ -354,7 +354,7 @@ func cmdDelete(cmd *cli.Cmd) { | |||
client := options.getClient() | |||
|
|||
for _, recordID := range *recordIDs { | |||
err := client.Delete(context.Background(), recordID) | |||
err := client.Delete(context.Background(), recordID, "") |
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.
Should actually use the safe delete, no?
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.
In the CLI, delete
just takes a record ID ... unless we extend it to also require a version ID (which you'd have to somehow get through another method), then safe delete wouldn't work. For a simple CLI, skipping the safe delete feels OK, but I'm willing to discuss.
1 similar comment
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! Thanks for the update!
Various cleanup changes: